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
| Name | Purpose |
|---|---|
AKey | Metadata property key to query, e.g. Title or Author |
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
- Common standard PDF property keys include Title, Author, Subject, Keywords, Creator and Producer
- This method only reads the classic document information dictionary and does not parse XMP-based metadata streams; for XMP use GetLoadedXMPMetadata
- Loaded-document object references may be indirect; resolve arrays, dictionaries or streams before inspecting nested values