GetCustomKeys
文档属性
描述
以 CSV 字符串形式返回文档信息字典或文档目录中的所有自定义键,有关如何操作存储在这些键下的数据,请参阅 SetCustomInformation 和 GetCustomInformation 函数
不返回由 PDF 规范或 PDF Library for Delphi 管理的系统键。对于 Catalog 键,这包括 OutputIntents、Extensions、Requirements、Collection 和 NeedsRendering,因此 PDF/A 设置及其他由库管理的 Catalog 结构不会作为自定义应用程序数据公开
语法
Delphi
Function TPDFlib.GetCustomKeys(Location: Integer): WideString;
ActiveX
Function PDFlib::GetCustomKeys(Location As Long) As String
DLL
const wchar_t* DLGetCustomKeys(int InstanceID, int Location);
const char* DLGetCustomKeysA(int InstanceID, int Location);
参数
| Location | 提取自定义键名的位置:1 = 文档信息字典;2 = 文档目录 |
|---|
返回值
返回文档信息字典(Location 1)或目录字典(Location 2)的自定义键;其他任何位置都返回空字符串