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

Method setProducer

src/api/pdf.ts:1277–1279  ·  view source on GitHub ↗

* Set the producer application. * * @param producer - The application that produced the PDF * * @example * ```typescript * pdf.setProducer("@libpdf/core"); * ```

(producer: string)

Source from the content-addressed store, hash-verified

1275 * ```
1276 */
1277 setProducer(producer: string): void {
1278 this.getInfoDict().set("Producer", PdfString.fromString(producer));
1279 }
1280
1281 /**
1282 * Get the document creation date.

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