* Create a tiling pattern. * * @param options - Pattern options including bbox, step sizes, and operators * @returns PDFPattern resource for use with page.registerPattern() * * @example * ```typescript * const pattern = pdf.createTilingPattern({ * bbox: { x: 0, y: 0, width:
(options: TilingPatternOptions)
| 2320 | * ``` |
| 2321 | */ |
| 2322 | createTilingPattern(options: TilingPatternOptions): PDFTilingPattern { |
| 2323 | const contentBytes = serializeOperators(options.operators); |
| 2324 | const stream = PDFTilingPattern.createStream(options, contentBytes); |
| 2325 | const ref = this.register(stream); |
| 2326 | |
| 2327 | return new PDFTilingPattern(ref); |
| 2328 | } |
| 2329 | |
| 2330 | /** |
| 2331 | * Create an image pattern for filling shapes with a tiled image. |
no test coverage detected