THotPDF.SetLoadedSubject Method
Sets the Subject field in the information dictionary of the loaded PDF document in order to update the document's subject metadata
Declaration
procedure SetLoadedSubject(const ASubject: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
ASubject | The subject description string to write to the Subject entry in the document information dictionary |
Usage notes
- 须在文档成功加载后调用,文档未加载时调用此方法将不产生任何效果
- The Subject field is an optional entry in the PDF information dictionary; some older readers may not display this field's content
- The save method must be called after modification, otherwise the changes only exist in memory and will be lost after the object is freed