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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Queries all document information as JSON array.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 10.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. |
Returns JSON or error.
Query JSON:
Set Variable [ $JSON; Value: MBS( "DynaPDF.GetDocInfoAsJSON"; PDF ) ]
Example result:
{
"Producer": "DynaPDF 4.0.41.118",
"Title": "Installation",
"Creator": "Pages",
"CreationDate": "D:20191121163638Z00'00'",
"ModDate": "D:20191121163638Z00'00'"
}
Query document information:
Set Variable [ $pdf ; Value: MBS("DynaPDF.New") ]
# Load PDF from container
Set Variable [ $r ; Value: MBS("DynaPDF.OpenPDFFromContainer"; $pdf; PDF JSON::PDF) ]
# import a page
Set Variable [ $r ; Value: MBS("DynaPDF.ImportPDFFile"; $pdf; 1) ]
#
# query document information
Set Variable [ $JSON ; Value: MBS("DynaPDF.GetDocInfoAsJSON"; $pdf) ]
If [ MBS("IsError") = 0 ]
Set Variable [ $JSON ; Value: MBS("JSON.Colorize"; $JSON) ]
End If
#
# store in field
Set Field [ PDF JSON::JSON ; $JSON ]
# Release memory
Set Variable [ $r ; Value: MBS("DynaPDF.Release"; $pdf) ]
Created 16th September 2020, last changed 26th March 2021
DynaPDF.GetDocInfo - DynaPDF.GetDocInfoCount
Feedback: Report problem or ask question.