THotPDF.GetLoadedInfoKeyValue Method

Reads and returns the corresponding property value in the Document Information Dictionary of the loaded PDF document based on the specified property key name.

Declaration

function GetLoadedInfoKeyValue(const AKey: AnsiString): AnsiString;

Unit

HPDFDoc

Parameters

NamePurpose
AKey要查询的元数据属性键名,例如 'Title''Author''Subject' 或自定义键名。

Return value

Returns the string value corresponding to the key name. Returns an empty string if the specified key does not exist or the document lacks an information dictionary.

Usage notes

Related APIs