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

Method setAuthor

src/api/pdf.ts:1127–1129  ·  view source on GitHub ↗

* Set the document author. * * @param author - The person who created the document content * * @example * ```typescript * pdf.setAuthor("Jane Smith"); * ```

(author: string)

Source from the content-addressed store, hash-verified

1125 * ```
1126 */
1127 setAuthor(author: string): void {
1128 this.getInfoDict().set("Author", PdfString.fromString(author));
1129 }
1130
1131 /**
1132 * Get the document subject.

Callers 7

setMetadataMethod · 0.95
pdf.test.tsFile · 0.80
mainFunction · 0.80
mainFunction · 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