RetrieveCustomDataToString
文档属性
描述
从先前使用 StoreCustomData 函数存储的 PDF 检索自定义数据
当 Location 为 2 时,目录系统键为保留键,返回空字符串而不公开由库管理的 Catalog 条目,例如 OutputIntents
语法
Delphi
Function TPDFlib.RetrieveCustomDataToString(Const Key: AnsiString; Location: Integer): AnsiString;
DLL
const char* DLRetrieveCustomDataToString(int InstanceID, const char* Key, int Location);
参数
| Key | 存储数据所用的键。如果位置是 Document Catalog,键必须带有 Adobe 分配给您的特殊前缀,以避免与其他软件冲突;如果位置是 Document Information Dictionary,则可以使用任意键,但应谨慎选择,确保键名对用户有意义 |
|---|---|
| Location | 1 = 从文档信息字典检索数据;2 = 从文档目录检索数据 |
返回值
返回 Key 存储的原始值。Location 不是 1 或 2,或 Key 属于该位置的库托管保留键时返回空字符串。