pdf2json icon indicating copy to clipboard operation
pdf2json copied to clipboard

Not catched error

Open hicTech opened this issue 5 years ago • 4 comments

Parsing this pdf: test.pdf I notice "pdfParser_dataError" doesn't fire so, for this pdf, is impossible to handling error. Any suggest?

hicTech avatar Feb 28 '20 10:02 hicTech

I had same error, someone has a solution?

rprotazio avatar Sep 01 '21 12:09 rprotazio

This is the exception returned when opening the attached document via pdf2json cli:

Warning: Unhandled rejection: Error: bad XRef entry
Error: bad XRef entry
    at error (eval at <anonymous> (.../lib/pdf.js:64:1), <anonymous>:195:9)
    at XRef_fetch [as fetch] (eval at <anonymous> (.../lib/pdf.js:64:1), <anonymous>:5733:11)
    at XRef_fetchIfRef [as fetchIfRef] (eval at <anonymous> (.../lib/pdf.js:64:1), <anonymous>:5700:19)
    at Dict_get [as get] (eval at <anonymous> (.../lib/pdf.js:64:1), <anonymous>:4759:28)
    at Dict_getAll [as getAll] (eval at <anonymous> (.../lib/pdf.js:64:1), <anonymous>:4810:24)
    at PartialEvaluator_hasBlendModes [as hasBlendModes] (eval at <anonymous> (.../lib/pdf.js:64:1), <anonymous>:7006:29)
    at Object.eval [as onResolve] (eval at <anonymous> (.../lib/pdf.js:64:1), <anonymous>:4345:42)
    at Object.runHandlers (eval at <anonymous> (.../lib/pdf.js:64:1), <anonymous>:864:35)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)

xzhayon avatar Oct 03 '21 21:10 xzhayon

any advices?

zhongziqi avatar Nov 15 '21 09:11 zhongziqi

should work in es6class branch now

modesty avatar Nov 20 '21 01:11 modesty

fixed since v2.0.0

modesty avatar Jun 22 '24 22:06 modesty