DAGetObjectToString

杂项函数、直接访问功能

描述

返回指定对象编号的原始 PDF 对象数据。仅供高级用途使用

语法

Delphi

Function TPDFlib.DAGetObjectToString(FileHandle, ObjectNumber: Integer): AnsiString;

DLL

const char* DLDAGetObjectToString(int InstanceID, int FileHandle, int ObjectNumber);

参数

FileHandle由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数返回的句柄
ObjectNumber要检索的对象编号。第一个对象编号为 1,最后一个对象编号等于 GetObjectCount 函数的结果。

返回值

返回对象的原始数据。文件句柄无效或对象编号不存在时返回空字符串。