export html to pdf

59 views
Skip to first unread message

Saeon Tao

unread,
Sep 14, 2016, 10:46:57 AM9/14/16
to Django users
Hi guys,

Does someone have a great suggestion for exporting an html div and save to pdf? i have found many options, only some of which are integrated with django.
In your experience, which is the best one to use for django==1.6.2 ? should i choose an integrated one? or is it possible to use jquery alone for this?

thank you



06us...@gmail.com

unread,
Sep 14, 2016, 12:02:58 PM9/14/16
to Django users
Hello,
To generate pdf document from html pages, I use weasyprint http://weasyprint.org/ for my project .
Hope this helps.
Cheers.



Derek

unread,
Sep 15, 2016, 9:49:18 AM9/15/16
to Django users
There is a useful overview of different tools here:
https://spapas.github.io/2015/11/27/pdf-in-django/

Michael Macdonald

unread,
Sep 16, 2016, 12:25:15 PM9/16/16
to Django users
Excellent article.  I played with a couple of the specific tools mentioned there but in my little application it wound up being more efficient and sufficient to format a printed page in HTML. 
Reply all
Reply to author
Forward
0 new messages