Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Queries input PDF metadata.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 5.2 Yes Yes Yes Yes Yes
MBS( "DynaPDF.GetInMetadata"; PDF; ObjType { ; PageNum } )   More


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
ObjType The object type. Can be Catalog, Font, Image, Page or Template. "Catalog"
PageNum Optional
Page number or -1 to access the global XMP stream.


Returns text or error.


Queries input PDF metadata.
The function can be used to access the optional metadata streams of pages or the global metadata stream of the current open import file. Metadata streams are in XMP format that is a superset of XML. The PDF file must be opened with DynaPDF.OpenPDFFromFile or DynaPDF.OpenPDFFromContainer beforehand.
Although the global XMP stream does usually exist in todays PDF files, metadata streams are optional and maybe not present. The function empty text, if no metadata stream is present.

See also GetInMetadata function in DynaPDF manual.


Open PDF and get XMP metadata:

Set Variable [$pdf; Value:MBS("DynaPDF.New")]
Set Variable [$r; Value:MBS("DynaPDF.OpenPDFFromContainer"; $pdf; DynaPDF XMP::InputPDF)]
Set Field [DynaPDF XMP::XMP; MBS( "DynaPDF.GetInMetadata"; $pdf; "Catalog"; -1 )]
Set Variable [$r; Value:MBS("DynaPDF.Release"; $pdf)]

See also

Blog Entries

Created 29th July 2015, last changed 31st July 2015

DynaPDF.GetInIsXFAForm   -   DynaPDF.GetInPrintSettings

Feedback: Report problem or ask question.

MBS Xojo blog