GetObjectJSON
Object model, document inspection
Description
Vráti jeden existujúci nepriamy objekt ako tú istú výslovnú typed hodnotu, akú používa formát kompletného objektového grafu. Referencie zostávajú referenciami namiesto rozbalenia, čím sa vyhne cyklom a zachová identitu objektov
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 |