galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams

Home Page:http://www.pdfhummus.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hummus get stuck while trying to load broken PDF

hiren-quovantis opened this issue · comments

commented

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.

I'm seeing the same issue.

the error handling is not great in general