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

Method setModificationDate

src/api/pdf.ts:1359–1361  ·  view source on GitHub ↗

* Set the document modification date. * * @param date - The date the document was last modified * * @example * ```typescript * pdf.setModificationDate(new Date()); * ```

(date: Date)

Source from the content-addressed store, hash-verified

1357 * ```
1358 */
1359 setModificationDate(date: Date): void {
1360 this.getInfoDict().set("ModDate", PdfString.fromString(formatPdfDate(date)));
1361 }
1362
1363 /**
1364 * Get the document trapped status.

Callers 4

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

Calls 4

getInfoDictMethod · 0.95
formatPdfDateFunction · 0.90
setMethod · 0.45
fromStringMethod · 0.45

Tested by

no test coverage detected