Skip to content

Failed to add document containing lexer #323

@Ocyss

Description

@Ocyss
const ext = new pdf.ExternalDocument(src) // src contains lexer formula
doc.addPageOf(2, ext) // Error
Error: Invalid number at 1: % (code: 37)
    at _Lexer._error (lexer.js:156:11)
    at _Lexer.readNumber (lexer.js:184:16)
    at _PDFObject.parse (object.js:48:22)
    at parseObject (reference.js:84:31)
    at _PDFReference.get [as object] (reference.js:15:17)
    at new ExternalDocument (external.js:20:46)
    at PDFMerger._addGivenPages (pdf-merger.ts:116:7)
    at async index.vue:137:15
    at async Promise.all (localhost.repl.co/index 1)
    at async getRecords (useData.ts:193:13)

1701016039.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions