Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.GetEmbeddedFile
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
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
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. |
"Name" | |
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. |
Optional |
Result
Returns value or error.
Description
Retrieves the details of an embedded file.See also GetEmbeddedFile function in DynaPDF manual.
Examples
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
- DynaPDF.CreateGoToEAction
- DynaPDF.DeleteEmbeddedFile
- DynaPDF.FindEmbeddedFile
- DynaPDF.GetEmbeddedFileAsContainer
- DynaPDF.GetEmbeddedFileAsJSON
- DynaPDF.GetEmbeddedFileCount
- DynaPDF.GetEmbeddedFilesAsJSON
- DynaPDF.New
Release notes
- Version 14.1
- Improved DynaPDF.GetEmbeddedFileAsContainer to return images with preview.
- Version 10.5
- Added DynaPDF.GetAnnotationAsJSON, DynaPDF.GetColorSpaceAsJSON, DynaPDF.GetEmbeddedFileAsJSON, DynaPDF.GetFieldAsJSON and DynaPDF.GetFontAsJSON functions.
- Added DynaPDF.GetAnnotationsAsJSON, DynaPDF.GetBookmarksAsJSON, DynaPDF.GetColorSpacesAsJSON, DynaPDF.GetDocInfoAsJSON, DynaPDF.GetEmbeddedFilesAsJSON, DynaPDF.GetFieldsAsJSON, DynaPDF.GetFontsAsJSON, DynaPDF.GetImportDocInfoAsJSON and DynaPDF.SysFontInfoAsJSON functions.
- Version 8.2
- Changed DynaPDF.GetEmbeddedFileAsContainer to work with handles from annotations.
Example Databases
- DynaPDF/Extract Attachments
- DynaPDF/PDF Attachments
- DynaPDF/ZUGFeRD/ZUGFeRD Extract XML
- DynaPDF/ZUGFeRD 2.0/ZUGFeRD Extract XML
Blog Entries
- Extract invoice for ZUGFeRD and Facture-X
- PDF Attachments in FileMaker with DynaPDF
- MBS FileMaker Plugin, version 5.5pr1
- MBS Filemaker Plugin, version 4.3pr11
FileMaker Magazin
This function checks for a license.
Created 11st September 2014, last changed 15th December 2015
DynaPDF.GetDynaPDFVersion - DynaPDF.GetEmbeddedFileAsContainer