Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Queries all embedded files as JSON array.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetEmbeddedFilesAsJSON"; PDF { ; Flags } )   More


Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Flags Pass 1 to include data of files base64 encoded as Buffer entry. 0 Optional


Returns JSON or error.


Queries all embedded files as JSON array.
See TPDFFileSpec structure in DynaPDF help, which we convert to JSON for you.

Keys include Buffer, BufSize, Compressed, Name, FileName, IsURL, UnicodeFileName, Description, FileSize, MIMEType, CreateDate, ModDate, CheckSum, Index.

See also GetEmbeddedFilesAsJSON function in DynaPDF manual.


Query JSON:

Set Variable [ $JSON; Value: MBS( "DynaPDF.GetEmbeddedFilesAsJSON"; PDF ) ]

Example result:
[ { "BufSize": 8631, "Compressed": false, "Name": "ZUGFeRD-invoice.xml", "FileName": "ZUGFeRD-invoice.xml", "IsURL": false, "UnicodeFileName": "ZUGFeRD-invoice.xml", "Description": "Invoice as XML", "FileSize": 8631, "MIMEType": "text/xml", "CreateDate": "D:20200916095956+02'00'", "ModDate": "D:20200916095956+02'00'", "CheckSum": "3016D465B18605BE5338645B5B85611C", "Index": 0 } ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 16th September 2020, last changed 2nd September 2022

DynaPDF.GetEmbeddedFileCount - DynaPDF.GetFTextHeight