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

Method setCreator

src/api/pdf.ts:1242–1244  ·  view source on GitHub ↗

* Set the creator application. * * @param creator - The application that created the original content * * @example * ```typescript * pdf.setCreator("Report Generator v2.0"); * ```

(creator: string)

Source from the content-addressed store, hash-verified

1240 * ```
1241 */
1242 setCreator(creator: string): void {
1243 this.getInfoDict().set("Creator", PdfString.fromString(creator));
1244 }
1245
1246 /**
1247 * Get the producer application.

Callers 3

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

Calls 3

getInfoDictMethod · 0.95
setMethod · 0.45
fromStringMethod · 0.45

Tested by

no test coverage detected