Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

DynaPDF.GetInMetadata

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 } )

Parameters

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.
-1

Result

Returns text or error.

Description

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.

Examples

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


DynaPDF.GetInIsXFAForm   -   DynaPDF.GetInPrintSettings

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins