Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to add document containing lexer #323

Open
Ocyss opened this issue Dec 24, 2023 · 1 comment
Open

Failed to add document containing lexer #323

Ocyss opened this issue Dec 24, 2023 · 1 comment

Comments

@Ocyss
Copy link

Ocyss commented Dec 24, 2023

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

@rkusa
Copy link
Owner

rkusa commented Dec 27, 2023

Thanks for the report and for providing the example PDF. However, I am afraid that pdfjs is too low on my priorities that I currently do not allocate time to look into PDF parsing issues. Just saying that you know to not expect a fix any time soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants