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 Long

DLL

int DLExportObjectJSON(int InstanceID, const wchar_t* OutputFileName, int Options);

Parameters

OutputFileNameDestination JSON file written through a same-directory temporary file and atomically replaced on success
OptionsBit 1 formats readable indented JSON; bit 2 writes stream data as null for inspection-only output that cannot be imported

Return values

1The complete graph was written
0The graph could not be decoded or the output could not be written; LastErrorCode is 304