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

Method setTrapped

src/api/pdf.ts:1402–1404  ·  view source on GitHub ↗

* Set the document trapped status. * * Trapping is a prepress technique to prevent gaps between colors. * * @param trapped - The trapped status * * @example * ```typescript * pdf.setTrapped("True"); * ```

(trapped: TrappedStatus)

Source from the content-addressed store, hash-verified

1400 * ```
1401 */
1402 setTrapped(trapped: TrappedStatus): void {
1403 this.getInfoDict().set("Trapped", PdfName.of(trapped));
1404 }
1405
1406 /**
1407 * Get the document language.

Callers 4

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

Calls 3

getInfoDictMethod · 0.95
setMethod · 0.45
ofMethod · 0.45

Tested by

no test coverage detected