jjwilly16 / node-pdftk

A wrapper for PDF Toolkit with streams and promises.
MIT License
139 stars 33 forks source link

More Verbose Logging #46

Open atelic opened 3 years ago

atelic commented 3 years ago

Is your feature request related to a problem? Please describe. Every once in a while, when calling .output(), node-pdftk throws an error and the only information in the error message is the string "2" causing our logs to read ERROR: 2.

Describe the solution you'd like A way to turn on more verbose logging to investigate the cause of the error. Is there a way to do this currently?

jjwilly16 commented 3 years ago

I've ran into this as well. It seems the PDFtk library sometimes returns 2 as a generic exception. I pulled a screenshot off this page:

image

Sorry, I don't think there's much I can do here