Python3 Django -> HTML to PDF

前端 未结 4 585
陌清茗
陌清茗 2020-12-15 00:28

There are a lot of different ways of generating pdfs from a django webpage in python2. The most clean, probably, is pisa and reportlab. These do not work for python3 though.

4条回答
  •  死守一世寂寞
    2020-12-15 00:53

    I have tried pydf in Python3, its working fine.

    pip install python-pdf
    

    For python2 use pip install python-pdf==0.30.0

    Documentation https://github.com/tutorcruncher/pydf

提交回复
热议问题