GetFileMetadata

Document properties

Description

Returns the metadata in a file, if any.

Syntax

Delphi

Function TPDFlib.GetFileMetadata(Const InputFileName, Password: WideString): WideString;

ActiveX

Function PDFlib::GetFileMetadata(InputFileName As String, Password As String) As String

DLL

const wchar_t* DLGetFileMetadata(int InstanceID, const wchar_t* InputFileName, const wchar_t* Password);
const char* DLGetFileMetadataA(int InstanceID, const char* InputFileName, const char* Password);

Parameters

InputFileNameThe path and name of the document to extract metadata from.
PasswordThe password to use when opening the document

Return values

Returns the XMP metadata of the file as a Unicode string; returns an empty string with LastErrorCode set when the file cannot be opened or parsed or the password does not match