GetObjectJSON

对象模型、文档检查

描述

以完整对象图格式所用的同一显式类型值返回一个现有间接对象。引用保持为引用而不展开,从而避免循环并保留对象身份

语法

Delphi

Function TPDFlib.GetObjectJSON(ObjectNumber, Options: Integer): AnsiString;

ActiveX

Function PDFlib::GetObjectJSON(ObjectNumber As Long, Options As Long) As String

DLL

const char* DLGetObjectJSON(int InstanceID, int ObjectNumber, int Options);

参数

ObjectNumber现有间接对象编号
Options位 1 格式化可读缩进 JSON,位 2 省略流数据

返回值

JSON已类型化的对象值
Empty string对象不存在或无法解码;LastErrorCode 为 105