DynaPDF.GetDocInfo
------------------

The function retrieves a document info entry as text from current PDF.

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

MBS( "DynaPDF.GetDocInfo"; PDF; Key ) 

**MBS**( **"DynaPDF.GetDocInfo";** /\* The function retrieves a document info entry as text from current PDF. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Key**) /\* The key to set. Can be Author, Creator, Keywords, Producer, Subject, Title, Company, PDFXVersion, PDFXConfiguration, CreationDate or ModificationDate.e.g. "Author" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Key | The key to set. Can be Author, Creator, Keywords, Producer, Subject, Title, Company, PDFXVersion, PDFXConfiguration, CreationDate or ModificationDate. | "Author" |

### Result

Returns value or error message.

### Description

The function retrieves a document info entry as text from current PDF.  
Please note that we have DynaPDF.GetDocInfo for the current working PDF and the [DynaPDF.GetImportDocInfo](DynaPDFGetImportDocInfo.md) for the current open import PDF.  
  
See also [DynaPDF.GetImportDocInfo](DynaPDFGetImportDocInfo.md) and [DynaPDF.GetImportDocInfoAsJSON](DynaPDFGetImportDocInfoAsJSON.md) for the current open import PDF.  
See also [GetDocInfo](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetDocInfo.shtml) function in DynaPDF manual.

### Examples

Query title of current PDF:

 $r = MBS ( "DynaPDF.GetDocInfo"; $PDF ; "title" )  
Queries keywords:

 Set Variable \[$r ; Value:MBS ("[DynaPDF.GetImportDocInfo](DynaPDFGetImportDocInfo.md)"; $pdf ; "keywords")\]  
### See also

- [DynaPDF.GetAscent](DynaPDFGetAscent.md)
- [DynaPDF.GetDescent](DynaPDFGetDescent.md)
- [DynaPDF.GetDocInfoAsJSON](DynaPDFGetDocInfoAsJSON.md)
- [DynaPDF.GetDocInfoCount](DynaPDFGetDocInfoCount.md)
- [DynaPDF.GetImportDocInfo](DynaPDFGetImportDocInfo.md)
- [DynaPDF.GetImportDocInfoAsJSON](DynaPDFGetImportDocInfoAsJSON.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetDocInfo](DynaPDFSetDocInfo.md)
- [DynaPDF.SetDocInfoEx](DynaPDFSetDocInfoEx.md)

### Release notes

- **Version 10.5**
    - Added [DynaPDF.GetAnnotationsAsJSON](https://www.mbsplugins.eu/DynaPDFGetAnnotationsAsJSON.shtml), [DynaPDF.GetBookmarksAsJSON](https://www.mbsplugins.eu/DynaPDFGetBookmarksAsJSON.shtml), [DynaPDF.GetColorSpacesAsJSON](https://www.mbsplugins.eu/DynaPDFGetColorSpacesAsJSON.shtml), [DynaPDF.GetDocInfoAsJSON](https://www.mbsplugins.eu/DynaPDFGetDocInfoAsJSON.shtml), [DynaPDF.GetEmbeddedFilesAsJSON](https://www.mbsplugins.eu/DynaPDFGetEmbeddedFilesAsJSON.shtml), [DynaPDF.GetFieldsAsJSON](https://www.mbsplugins.eu/DynaPDFGetFieldsAsJSON.shtml), [DynaPDF.GetFontsAsJSON](https://www.mbsplugins.eu/DynaPDFGetFontsAsJSON.shtml), [DynaPDF.GetImportDocInfoAsJSON](https://www.mbsplugins.eu/DynaPDFGetImportDocInfoAsJSON.shtml) and [DynaPDF.SysFontInfoAsJSON](https://www.mbsplugins.eu/DynaPDFSysFontInfoAsJSON.shtml) functions.

### Example Databases

- [DynaPDF/PDF Library](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/PDF%20Library.shtml#1ScriptAnchor_)

### Blog Entries

- [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 6/2020, Seite 33](https://filemaker-magazin.de/neuigkeit/4118-Appetithappen-FMM_202006)

This function checks for a license.

Created 18th August 2014 , last changed 24th March 2022

  
[DynaPDF.GetDescent](DynaPDFGetDescent.md) - [DynaPDF.GetDocInfoAsJSON](DynaPDFGetDocInfoAsJSON.md)

[HTML Version](DynaPDFGetDocInfo.shtml)