Answer the question
In order to leave comments, you need to log in
How to install wkhtmltopdf on heroku?
Hello, I'm trying to install wkhtmltopdf for my herokuapp because locally my flask app works (creates a pdf file) and I need it to work when running on heroku.
I was told that wkhtmltopdf just needs to be installed on the heroku server, but the problem is that I do not understand how to work on it using the command line.
I found this tutorial
https://elements.heroku.com/buildpacks/issueapp/he...
but it is simplified as much as possible - I do not understand from which side to approach it.
By default, deploying to heroku is done like this:
1. An app is created on the heroku.dashboard site
2. Next, I go locally to the project directory and do deploy (as it is described in the tooltip that appears after creating the app). Of course, you first need to do pip freeze > requirements.txt
I don’t understand at what step the instruction that I discovered is used ?!
Thanks a lot
Answer the question
In order to leave comments, you need to log in
https://stackoverflow.com/questions/52721272/pytho...
advises to install pydf :
pip install python-pdf
Wkhtmltopdf binaries are precompiled and included in the package making pydf easier to use, in particular this means pydf works on heroku .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question