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.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DynaPDF.GetEmbeddedFilesAsJSON
Queries all embedded files as JSON array.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 10.5 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| The PDF reference returned from DynaPDF.New. | |||
| Flags | Pass 1 to include data of files base64 encoded as Buffer entry. | 0 | Optional |
Result
Returns JSON or error.
Description
Queries all embedded files as JSON array.See TPDFFileSpec structure in DynaPDF manual, which we convert to JSON for you.
Keys include Buffer, BufSize, Compressed, Name, FileName, IsURL, UnicodeFileName, Description, FileSize, MIMEType, CreateDate, ModDate, CheckSum, Index.
Examples
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
Example Databases
Blog Entries
FileMaker Magazin
Release notes
- Version 10.5
Created 16th September 2020, last changed 16th September 2020
DynaPDF.GetEmbeddedFileCount - DynaPDF.GetFTextHeight
Feedback: Report problem or ask question.
Links
MBS FileMaker blog