DynaPDF.SetDocInfo
------------------

The function sets or changes a document info entry.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.0](newinversion30.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.SetDocInfo"; PDF; DocInfo; Value ) 

**MBS**( **"DynaPDF.SetDocInfo";** /\* The function sets or changes a document info entry. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$DocInfo**; /\* The key to set.   
Can be Author, Creator, Keywords, Producer, Subject, Title or Company.e.g. "Author" \*/   
**$Value**) /\* The new value.e.g. "Hello" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| DocInfo | The key to set.    Can be Author, Creator, Keywords, Producer, Subject, Title or Company. | "Author" |
| Value | The new value. | "Hello" |

### Result

Returns OK or error message.

### Description

The function sets or changes a document info entry.  
See also [SetDocInfo](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetDocInfo.shtml) function in DynaPDF manual.

### Examples

Set author name:

 MBS ( "DynaPDF.SetDocInfo"; $PDF ; "Author"; "Christian" )  
Set title of document:

 Set Variable \[$r ; Value: MBS ("DynaPDF.SetDocInfo"; $pdf ; "Title"; "Test PDF") \]  
Set keywords:

 Set Variable \[$r ; Value:MBS ("DynaPDF.SetImportDocInfo"; $pdf ; "keywords"; "test, dynapdf, filemaker")\]  
Set company and producer of document:

 Set Variable \[$r ; Value:MBS ("DynaPDF.SetDocInfo"; $pdf ; "company"; "MyCompany Ltd")\]  
Set Variable \[$r ; Value:MBS ("DynaPDF.SetDocInfo"; $pdf ; "producer"; "MyCompany Ltd")\]  
### See also

- [DynaPDF.GetDocInfo](DynaPDFGetDocInfo.md)
- [DynaPDF.InsertImage](DynaPDFInsertImage.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetDocInfoEx](DynaPDFSetDocInfoEx.md)
- [DynaPDF.SetPDFVersion](DynaPDFSetPDFVersion.md)
- [DynaPDF.SysFontInfo](DynaPDFSysFontInfo.md)

### Release notes

- **Version 8.2**
    - Added [DynaPDF.SetDocInfoEx](http://www.mbsplugins.eu/DynaPDFSetDocInfoEx.shtml) function.

### Example Databases

- [Barcode/DynaPDF Barcode](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/DynaPDF%20Barcode.shtml#2ScriptAnchor_)
- [DynaPDF/Barcodes](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Barcodes.shtml#1ScriptAnchor_)
- [DynaPDF/Book Creation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Book%20Creation.shtml#3ScriptAnchor_)
- [DynaPDF/Bookmarks](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Bookmarks.shtml#2ScriptAnchor_)
- [DynaPDF/Create DeviceN ColorSpace](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Create%20DeviceN%20ColorSpace.shtml#2ScriptAnchor_)
- [DynaPDF/Create Text as PDFA](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Create%20Text%20as%20PDFA.shtml#3ScriptAnchor_)
- [DynaPDF/Invoice/Invoice](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Invoice/Invoice.shtml#3ScriptAnchor_)
- [DynaPDF/Signature Appearance](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Signature%20Appearance.shtml#1ScriptAnchor_)
- [DynaPDF/WriteFText](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/WriteFText.shtml#2ScriptAnchor_)
- [OCR/OCR with DynaPDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/OCR/OCR%20with%20DynaPDF.shtml#1ScriptAnchor_)

### Blog Entries

- [Use complex text rendering with DynaPDF in FileMaker](https://www.mbsplugins.de/archive/2025-06-25/Use_complex_text_rendering_wit/monkeybreadsoftware_blog_filemaker)
- [Introducing DynaPDF to MBS Filemaker Plugin](https://www.mbsplugins.de/archive/2012-11-27/Introducing_DynaPDF_to_MBS_Fil/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 5/2018, Seite 28](https://filemaker-magazin.de/neuigkeit/4011-Appetithappen-FMM_201805)

This function checks for a license.

Created 18th August 2014 , last changed 10th March 2023

  
[DynaPDF.SetDateTimeFormat](DynaPDFSetDateTimeFormat.md) - [DynaPDF.SetDocInfoEx](DynaPDFSetDocInfoEx.md)

[HTML Version](DynaPDFSetDocInfo.shtml)