Create pdf file with django using python 3

I want to create a pdf file with django. But I am using python 3. Is there already libary supportign python3? I found reportlab, pisa, html2py ... but I think no one supports python 3. I hope something like html2py is available.

+4
source share
2 answers

EDIT: I just stumbled upon Django Easy PDF, which is compatible with Python 3 and might be more useful:

https://github.com/nigma/django-easy-pdf

Please note, however, that since writing this xhtml2pdf , which is a Django Easy PDF dependency, only Python 3 is supported if you install the latest beta with:

pip install --pre xhtml2pdf

WeasyPrint Python 3:

http://weasyprint.org/

Django. :

http://ampad.de/blog/generating-pdfs-django/

+4

, , :

0

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