Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.GetDocInfoAsJSON
Queries all document information as JSON array.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 10.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. |
Result
Returns JSON or error.
Description
Queries all document information as JSON array.JSON includes text for various document information properties including Author, Creator, Keywords, Producer, Subject, Title, Company, PDF-X Version, PDF-X Conf, CreationDate and ModDate.
As custom keys can be defined in PDF, those may get included, too.
Alternatively you can use DynaPDF.GetDocInfoCount and loop to call DynaPDF.GetDocInfo individual values.
See also DynaPDF.GetImportDocInfo and DynaPDF.GetImportDocInfoAsJSON for the current open import PDF.
See also GetDocInfoAsJSON function in DynaPDF manual.
Examples
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) ]
See also
- DynaPDF.GetActionsAsJSON
- DynaPDF.GetFontsAsJSON
- DynaPDF.GetImportDocInfo
- DynaPDF.GetImportDocInfoAsJSON
- DynaPDF.ImportPDFFile
- DynaPDF.New
- DynaPDF.Release
- DynaPDF.SysFontInfoAsJSON
- IsError
- JSON.Colorize
Release notes
- Version 10.5
Example Databases
Blog Entries
- Unlocking the Power of PDFs in FileMaker with DynaPDF and the MBS FileMaker Plugin
- New in MBS FileMaker Plugin 10.5
- MBS FileMaker Plugin, version 10.5pr1
- Embrace JSON
FileMaker Magazin
This function checks for a license.
Created 16th September 2020, last changed 10th April 2022