THotPDF.SetLoadedDocumentInfo Method
Modifies the value of the specified key in the information dictionary of the loaded PDF document
Declaration
function SetLoadedDocumentInfo(const AKey, AValue: AnsiString): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AKey | Information dictionary key, e.g. Title or Keywords |
AValue | The new value string to write to this key |
Return value
Returns True when the specified key in the information dictionary is updated successfully
Usage notes
- The change only takes effect in memory; call a save method afterwards to write the document to disk and make it persistent
- Before calling this method on an encrypted document, ensure write permissions have been granted, otherwise the operation may be rejected
- If the document is encrypted without write permission the update may be rejected