I'm attempting to use the npm package pdf-image (https://www.npmjs.com/package/pdf-image) for an app that is deployed on heroku. It requires imagemagick ghostscript poppler- (ensure you have convert, gs, and pdfinfo (part of poppler) commands).
I've attempted to add a imagemagick, ghostscript, and poppler buildpack to the app and then deploy. The app is working but times out (h12 heroku error) when it comes to the method that requires the pdf-image package.
The method works locally without problem.
I'm not sure how to trouble shoot. I see that there are a lot of different options to use for the buildpacks and am wondering if I added the best one or not.
Has anyone deployed to heroku with the pdf-image package? Which buildpacks do you recommend for ghostcript, imagemagick, and poppler? What are other possible causes for the time out and ways to troubleshoot?
Thank you!