DAGetInformation
Documenteigenschappen, functionaliteit voor directe toegang
Beschrijving
Haalt informatie uit het documentinformatiegedeelte op. Dat kan standaardinformatie zijn zoals Author en Subject, of custominformatie
Datumwaarden worden geretourneerd met hun opgeslagen precisie en tijdzonenaanduiding, inclusief gedeeltelijke datums en een UTC Z-suffix
Syntaxis
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);
Parameters
| FileHandle | Een handle geretourneerd door de functies DAOpenFile, DAOpenFileReadOnly of DAOpenFromStream |
|---|---|
| Key | Voor standaardinformatie gebruikt u "Author", "Title", "Subject", "Keywords", "Creator" of "Producer". Voor custominformatie kan elke andere string worden gebruikt |
Retourwaarden
Retourneert de waarde die onder de opgegeven sleutel is opgeslagen. Retourneert een lege tekenreeks wanneer de bestandshandle ongeldig is of de sleutel niet voorkomt.