modesty / pdf2json

converts binary PDF to JSON and text, for server-side PDF processing and command-line use.
https://github.com/modesty/pdf2json
Other
2.02k stars 377 forks source link

Node.js Server got stuck when parsing specific PDF while it is working for other PDFs #321

Closed pedrodev033 closed 5 months ago

pedrodev033 commented 1 year ago

when trying to call this function this.PDFParser.parseBuffer(PDF) server got stuck. even setTimeout is not working and not getting api call. overall server freeze and I had to restart server. Appreciate the help.

modesty commented 10 months ago

can you upload the PDF file?

abhithkba commented 7 months ago

same issue. here is the pdf file 21583473018.pdf

the error is not getting caught by try catch or pdfParser.on("pdfParser_dataError", errData => console.error(errData.parserError) );