Python: Create automated strictly-designed multi-page .pdf report from .html

后端 未结 2 688
一个人的身影
一个人的身影 2021-01-31 21:36

What are good Python-based options to create strictly designed .pdf reports from .html?

I\'ve attached a draft .pdf to illustrate the following points:

  • The
2条回答
  •  误落风尘
    2021-01-31 21:54

    You can see this Python package: weasyprint

    Web page: http://weasyprint.org/

    Official doc: http://weasyprint.readthedocs.io/en/latest/

    It's great, because you can generate the PDF from a web page or an html file, you can have conflicts with some CSS (which are specified in the documentation), but it provides what you need

提交回复
热议问题