DAGetInformation

Document properties, Direct access functionality

Description

Retrieves information from the document information section. This could be standard information such as Author and Subject, or custom information

Date values are returned with their stored precision and time-zone notation, including partial dates and a UTC Z suffix

Syntax

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

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
KeyFor standard information use "Author", "Title", "Subject", "Keywords", "Creator", or "Producer". For custom information any other string can be used

Return values

Returns the value stored under the given key. Returns an empty string when the file handle is invalid or the key is not present.