GetObjectJSON
物件模型、文件檢查
描述
以完整物件圖格式所用的顯式型別值,傳回單一既有間接物件。參照仍保持為參照而不展開,避免循環並保留物件身分
語法
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);參數
| ObjectNumber | 既有的間接物件編號 |
|---|---|
| Options | PDF_OBJECT_JSON_PRETTY(1)輸出可讀的縮排 JSON;PDF_OBJECT_JSON_OMIT_STREAM_DATA(2)省略串流資料 |
傳回值
| JSON | 帶型別的物件值 |
|---|---|
| 空字串 | 物件不存在或無法解碼;LastErrorCode 為 105 |