THotPDF.RemoveLoadedInfoKey Method
Completely removes the specified key and its corresponding value from the information dictionary of the loaded PDF document, used to clean up unneeded metadata entries
Declaration
procedure RemoveLoadedInfoKey(const AKey: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AKey | Key name to remove from the information dictionary, e.g. Author |
Return value
This member returns no value
Usage notes
- Key names are case-sensitive and must match the actual information dictionary key exactly, otherwise nothing happens
- If the specified key does not exist in the information dictionary, this method will silently return without raising an exception
- Deletion operations only affect the document structure in memory; the save method must be called for changes to be written to the file