* Create and register a graphics state, returning its resource name. * * This is an internal helper for high-level drawing methods. * For the public low-level API, use `pdf.createExtGState()` + `page.registerExtGState()`.
(options: { fillOpacity?: number; strokeOpacity?: number })
| 2648 | * For the public low-level API, use `pdf.createExtGState()` + `page.registerExtGState()`. |
| 2649 | */ |
| 2650 | private registerGraphicsState(options: { fillOpacity?: number; strokeOpacity?: number }): string { |
| 2651 | const dict = PDFExtGState.createDict(options); |
| 2652 | const ref = this.ctx.register(dict); |
| 2653 | |
| 2654 | return this.registerExtGState({ type: "extgstate", ref }); |
| 2655 | } |
| 2656 | |
| 2657 | /** |
| 2658 | * Append operators to the page content stream (foreground). |
no test coverage detected