GetDocumentJSON

Document exchange

Description

Returns the complete document object graph as a qPDF-style JSON string

Syntax

Delphi

Function GetDocumentJSON(Options: Integer): WideString;

Return values

Empty string when no document is loaded; otherwise the JSON text

Remarks

Options follows ExportDocumentJSON: 1 omits stream payloads, 2 includes the trailer dictionary. The returned WideString holds UTF-16 text of the same structure written by ExportDocumentJSON

Example

JSON:= PDF.GetDocumentJSON(1);

See also

AuditDocumentSpace, AnalyseFile