THotPDF.SetLoadedKeywords Method
Sets the Keywords field in the information dictionary of the loaded PDF document to update the document's keyword metadata
Declaration
procedure SetLoadedKeywords(const AKeywords: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AKeywords | The keyword string to write to the Keywords entry in the document information dictionary; multiple keywords are usually separated by spaces or commas |
Usage notes
- 关键词字符串的格式由调用方自行决定,PDF 规范未强制规定分隔符,但惯例是空格分隔
- This method directly overwrites the existing Keywords value; if you need to append keywords, you should read the original value first, concatenate them, and then pass it in
- The save method must be called after modification, otherwise changes are only kept in memory and will be lost upon program exit