ExportObjectJSON
Object model, document inspection
Description
Streamuje trailer a každý nepriamy objekt vo vzostupnom poradí object number do verziovaného JSON objektového grafu bez budovania kompletného výstupu v pamäti. Každá PDF hodnota nesie výslovný typ. Názvy, kľúče dictionary a reťazce používajú hexadecimálne bajtové kódovanie, streamy Base64 a referencie si zachovávajú object aj generation čísla, takže reprezentácia je reverzibilná a bezpečná pre audit alebo dávkovú editáciu
Syntax
Delphi
Function TPDFlib.ExportObjectJSON(Const OutputFileName: WideString; Options: Integer): Integer;ActiveX
Function PDFlib::ExportObjectJSON(OutputFileName As String, Options As Long) As LongDLL
int DLExportObjectJSON(int InstanceID, const wchar_t* OutputFileName, int Options);Parameters
| OutputFileName | Destination JSON file written through a same-directory temporary file and atomically replaced on success |
|---|---|
| Options | Bit 1 formats readable indented JSON; bit 2 writes stream data as null for inspection-only output that cannot be imported |
Return values
| 1 | The complete graph was written |
|---|---|
| 0 | The graph could not be decoded or the output could not be written; LastErrorCode is 304 |