GetObjectJSON
Object model, document inspection
Opis
Vraća jedan postojeći neizravni objekt kao istu izričitu tipiziranu vrijednost koju upotrebljava format potpunog grafa objekata. Reference ostaju reference umjesto da se prošire, čime se izbjegavaju ciklusi i čuva identitet objekta
Sintaksa
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);Parametri
| ObjectNumber | Existing indirect object number |
|---|---|
| Options | Bit 1 formats readable indented JSON; bit 2 omits stream data |
Povratne vrijednosti
| JSON | The typed object value |
|---|---|
| Empty string | Objekt ne postoji ili se ne može dekodirati; LastErrorCode je 105 |