Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Weasyprint or Reportlab for generating Django reports on Heroku

Trying to decide on the best route for generating server-side pdf reports within my app currently deployed on Heroku. I've read several posts that say both require installation external libraries- but haven't found anything describing functionality & ease of install on Heroku.

Does anyone here have experience installing either to an app on Heroku? Is it a difficult process- is one easier to setup on Heroku than the other? Or if I am able to install on my local system and run PIP Freeze, will that take care of any installs necessary on Heroku?

Thanks!!

like image 292
mg2019 Avatar asked Nov 08 '25 09:11

mg2019


1 Answers

Weasyprint needs some dependencies installed, think it's not possible to install it on heroku. I tested it locally and it worked pretty well, after the setup was done, it was easy to feed a nice dynamic html-document and get a solid pdf in return.

heroku offers a web2pdf-addon: https://elements.heroku.com/addons/webtopdf#details

I did not test it yet, but it looks promising.

like image 152
and_ip88 Avatar answered Nov 09 '25 23:11

and_ip88



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!