GetDocumentJSON

文件交換

描述

以 qPDF 風格的 JSON 字串傳回完整的文件物件圖

語法

Delphi

Function GetDocumentJSON(Options: Integer): WideString;

參數

Options控制匯出的位元遮罩:1 省略串流物件的資料,2 包含 trailer 字典;0 匯出串流資料但不包含 trailer

傳回值

未載入文件時為空字串;否則為 JSON 文字

備註

Options 遵循 ExportDocumentJSON:1 省略串流酬載,2 包含檔尾字典。傳回的 WideString 保存 UTF-16 文字,結構與 ExportDocumentJSON 寫入的相同

PDF 字串與名稱保留原始位元組值:控制位元組與高位元組使用 JSON Unicode 跳脫;數值保留其小數精度,metadata 回報已載入的 PDF 版本

範例

JSON:= PDF.GetDocumentJSON(1);

另請參閱

AuditDocumentSpace, AnalyseFile