DAGetInformation
文档属性、直接访问功能
描述
从文档信息部分检索信息。这可以是 Author 和 Subject 等标准信息,也可以是自定义信息
日期值按其存储的精度和时区表示返回,包括部分日期和 UTC Z 后缀
语法
Delphi
Function TPDFlib.DAGetInformation(FileHandle: Integer; Const Key: WideString): WideString;
ActiveX
Function PDFlib::DAGetInformation(FileHandle As Long, Key As String) As String
DLL
const wchar_t* DLDAGetInformation(int InstanceID, int FileHandle, const wchar_t* Key);
const char* DLDAGetInformationA(int InstanceID, int FileHandle, const char* Key);
参数
| FileHandle | 由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数返回的句柄 |
|---|---|
| Key | 对于标准信息,请使用 "Author"、"Title"、"Subject"、"Keywords"、"Creator" 或 "Producer"。对于自定义信息,可使用任何其他字符串 |
返回值
返回存储在指定键下的值。文件句柄无效或键不存在时返回空字符串。