RetrieveCustomDataToFile

文档属性

描述

开始多段路径

语法

Delphi

Function TPDFlib.RetrieveCustomDataToFile(Const Key, FileName: WideString; Location: Integer): Integer;

ActiveX

Function PDFlib::RetrieveCustomDataToFile(Key As String, FileName As String, Location As Long) As Long

DLL

int DLRetrieveCustomDataToFile(int InstanceID, const wchar_t * Key, const wchar_t * FileName, int Location);

参数

Key存储数据所用的键。如果位置是 Document Catalog,键必须带有 Adobe 分配给您的特殊前缀,以避免与其他软件冲突;如果位置是 Document Information Dictionary,则可以使用任意键,但应谨慎选择,确保键名对用户有意义
FileName保存检索数据所用文件的路径和名称
Location1 = 从文档信息字典检索数据;2 = 从文档目录检索数据

返回值

0指定键中没有存储数据,或保存数据的文件已存在且无法覆盖
1已成功检索数据并将其写入指定文件