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

Dependency modules? #59

Open arthabus opened 4 years ago

arthabus commented 4 years ago

Ensure you have convert, gs, and pdfinfo (part of poppler) commands.

Could you please list exact modules to install here?

sonawanevip commented 4 years ago

Ensure you have convert, gs, and pdfinfo (part of poppler) commands.

Could you please list exact modules to install here?

hi, did you find any answer for this? if yes please share with us

arthabus commented 4 years ago

@sonawanevip nope... I ended up using ghostscript directly as it does what I need.

Not sure if that might be relevant, but here is the article I ended up following that explains how to install ghostscript in node if you are using firebase:

https://tech.residebrokerage.com/using-firebase-cloud-functions-with-ghostscript-for-pdf-to-image-conversion-f81b248d3b22

I guess something similar needs to be done for all packages for this library to work - convert must be from ImageMagic package, gs is ghostscript and pdfinfo from poppler