mooz / node-pdf-image

Provides an interface to convert PDF's pages to png files in Node.js by using ImageMagick
MIT License
237 stars 87 forks source link

Throw error if pdfImage.numberOfPages() fails #46

Open SteffenLanger opened 6 years ago

SteffenLanger commented 6 years ago

Before, numberOfPages() failed silently if the tool "pdfinfo" was not installed. This change simplifies debugging for anyone who did not install the external tools before executing pdfImage.convertFile().