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

Method setSubject

src/api/pdf.ts:1162–1164  ·  view source on GitHub ↗

* Set the document subject. * * @param subject - The subject or description of the document * * @example * ```typescript * pdf.setSubject("Financial summary for Q4"); * ```

(subject: string)

Source from the content-addressed store, hash-verified

1160 * ```
1161 */
1162 setSubject(subject: string): void {
1163 this.getInfoDict().set("Subject", PdfString.fromString(subject));
1164 }
1165
1166 /**
1167 * Get the document keywords.

Callers 3

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

Calls 3

getInfoDictMethod · 0.95
setMethod · 0.45
fromStringMethod · 0.45

Tested by

no test coverage detected