DAGetInformation

Właściwości dokumentu, Funkcje dostępu bezpośredniego

Opis

Pobiera informacje z sekcji informacji dokumentu. Mogą to być standardowe informacje, takie jak Author i Subject, albo informacje niestandardowe.

Wartości dat są zwracane z zachowaną precyzją i oznaczeniem strefy czasowej, łącznie z datami częściowymi i przyrostkiem UTC Z

Składnia

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

Parametry

FileHandleUchwyt zwrócony przez funkcję DAOpenFile, DAOpenFileReadOnly lub DAOpenFromStream
KeyW przypadku informacji standardowych użyj "Author", "Title", "Subject", "Keywords", "Creator" lub "Producer". W przypadku informacji niestandardowych można użyć dowolnego innego ciągu.

Wartości zwracane

Zwraca wartość zapisaną pod podanym kluczem. Zwraca pusty ciąg znaków, gdy uchwyt pliku jest nieprawidłowy lub klucz nie występuje.