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


Retrieves the details of an embedded file.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 4.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetEmbeddedFile"; PDF; Index; Selector { ; Encoding } )   More


Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Index The index of the embedded file. From 0 to DynaPDF.GetEmbeddedFileCount-1. 0
Selector Which value to query.
Can be DataSize, FileSize, Compressed, Name, FileName, isURL, UnicodeName, Description, MimeType, CreationDate, ModificationDate or CheckSum.
With value "Content" you can query the content of the embedded file as text. Optional Text encoding parameter is used in this case.
Encoding The text encoding for the content.
Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ.


Returns value or error.


Retrieves the details of an embedded file.

See also GetEmbeddedFile function in DynaPDF manual.


Query name of first file:

MBS( "DynaPDF.GetEmbeddedFile"; $pdf; 0; "name")

Query content as text in UTF-8:

MBS( "DynaPDF.GetEmbeddedFile"; $pdf; 0; "Content"; "UTF-8" )

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 11st September 2014, last changed 15th December 2015

DynaPDF.GetDynaPDFVersion - DynaPDF.GetEmbeddedFileAsContainer