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 StringDLL
const char* DLGetObjectJSON(int InstanceID, int ObjectNumber, int Options);Parameters
| ObjectNumber | Existing indirect object number |
|---|---|
| Options | Bit 1 formats readable indented JSON; bit 2 omits stream data |
Return values
| JSON | The typed object value |
|---|---|
| Empty string | The object does not exist or cannot be decoded; LastErrorCode is 105 |