GetObjectJSON

Object model, document inspection

Description

Returns one existing indirect object as the same explicit typed value used by the complete object graph format. References remain references rather than being expanded, avoiding cycles and preserving object identity

Syntax

Delphi

Function TPDFlib.GetObjectJSON(ObjectNumber, Options: Integer): AnsiString;

ActiveX

Function PDFlib::GetObjectJSON(ObjectNumber As Long, Options As Long) As String

DLL

const char* DLGetObjectJSON(int InstanceID, int ObjectNumber, int Options);

Parameters

ObjectNumberExisting indirect object number
OptionsBit 1 formats readable indented JSON; bit 2 omits stream data

Return values

JSONThe typed object value
Empty stringThe object does not exist or cannot be decoded; LastErrorCode is 105