Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Retrieves the details of an embedded file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 4.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
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 |
Returns value or error.
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" )
Created 11st September 2014, last changed 15th December 2015
DynaPDF.GetDynaPDFVersion - DynaPDF.GetEmbeddedFileAsContainer
Feedback: Report problem or ask question.