* Helper to create an IndirectObjectParser from a string.
( input: string, lengthResolver?: (ref: PdfRef) => number | null, options?: IndirectObjectParserOptions, )
| 14 | * Helper to create an IndirectObjectParser from a string. |
| 15 | */ |
| 16 | function parser( |
| 17 | input: string, |
| 18 | lengthResolver?: (ref: PdfRef) => number | null, |
| 19 | options?: IndirectObjectParserOptions, |
| 20 | ): IndirectObjectParser { |
| 21 | const bytes = new TextEncoder().encode(input); |
| 22 | const scanner = new Scanner(bytes); |
| 23 | |
| 24 | return new IndirectObjectParser(scanner, lengthResolver, options); |
| 25 | } |
| 26 | |
| 27 | describe("IndirectObjectParser", () => { |
| 28 | describe("standard objects", () => { |
no test coverage detected