galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams
http://www.pdfhummus.com
Other
1.15k stars 170 forks source link

Hummus get stuck while trying to load broken PDF #422

Open hiren-quovantis opened 5 years ago

hiren-quovantis commented 5 years ago

The hummus gets stuck/hangs at the following line while working with broken PDF: hummus.createReader(broken-file.pdf)

I would have expected it to throw an error but it does nothing. Is there a workaround that I could use? Or else, I'll have to add another library just to see if PDF is valid or not.

BTW, am a big fan of Hummus and really impressed with its overall performance and functionality.

kilsen commented 5 years ago

I'm seeing the same issue.

goatandsheep commented 5 years ago

the error handling is not great in general