Categories
Mastering Development

Nodejs pdfjs-dist: Unable to catch Bad end offset

I am implementing pdfjs-dist to extract text from pdf documents and I am encountering the above error for selected pdfs. When this error occurs, I would like to catch it and handle it accordingly but my implementation so far hasn’t been successful in catching this error. As a result, it has been crashing my Firebase […]