Using Wkhtmltopdf with Nodejs on Heroku

That's what. I am on nodejs and I want to generate a PDF file using wkhtmltopdf. It works fine locally, but when I click it on the hero, I have an “Application Error”.

I think this is because it does not have the Wkhtmltopdf binary for Heroku, do you know it? Or is it something else?

0
source share
1 answer

Heroku does not include the binary wkhtmltopdf, but you have two options to make it work there.

First build wkhtmltopdffrom a source on Heroku (using the Vulcan gem ).

- wkhtmltopdf . this, this . , /bin, Heroku wkhtmltopdf .

P.S. , , Ruby, , wkhtmltopdf Heroku. Rails-, wkhtmltopdf .

+1

Source: https://habr.com/ru/post/1617254/


All Articles