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

Method createExtGState

src/api/pdf.ts:2448–2453  ·  view source on GitHub ↗

* Create an extended graphics state (ExtGState) for advanced graphics options. * * @param options - ExtGState options including opacity and blend mode * @returns PDFExtGState resource for use with page.registerExtGState() * * @example * ```typescript * const gs = pdf.createExtGS

(options: ExtGStateOptions)

Source from the content-addressed store, hash-verified

2446 * ```
2447 */
2448 createExtGState(options: ExtGStateOptions): PDFExtGState {
2449 const dict = PDFExtGState.createDict(options);
2450 const ref = this.register(dict);
2451
2452 return new PDFExtGState(ref);
2453 }
2454
2455 // ─────────────────────────────────────────────────────────────────────────────
2456 // Low-Level Drawing API - Form XObjects

Calls 2

registerMethod · 0.95
createDictMethod · 0.45

Tested by

no test coverage detected