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);

パラメータ

FileHandleDAOpenFile、DAOpenFileReadOnly、または DAOpenFromStream 関数が返すハンドルです
Key標準情報には "Author"、"Title"、"Subject"、"Keywords"、"Creator"、または "Producer" を使用します。カスタム情報には他の任意の文字列を使用できます

戻り値

指定されたキーに格納されている値を返します。ファイルハンドルが無効な場合やキーが存在しない場合は空文字列を返します。