MCPcopy Create free account
hub / github.com/LibPDF-js/core / setKeywords

Method setKeywords

src/api/pdf.ts:1207–1209  ·  view source on GitHub ↗

* Set the document keywords. * * @param keywords - Array of keywords associated with the document * * @example * ```typescript * pdf.setKeywords(["finance", "quarterly", "2024", "Q4"]); * ```

(keywords: string[])

Source from the content-addressed store, hash-verified

1205 * ```
1206 */
1207 setKeywords(keywords: string[]): void {
1208 this.getInfoDict().set("Keywords", PdfString.fromString(keywords.join(" ")));
1209 }
1210
1211 /**
1212 * Get the creator application.

Callers 4

setMetadataMethod · 0.95
pdf.test.tsFile · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 3

getInfoDictMethod · 0.95
setMethod · 0.45
fromStringMethod · 0.45

Tested by

no test coverage detected