python生成pdf报表

pyfpdf

pyfpdf 基于php的fpdf(http://www.fpdf.org/)移植,
对于字库uincode需要额外安装,
缺少模板,
文档
https://pyfpdf.readthedocs.io/
代码
https://github.com/reingart/pyfpdf/


pdf_reports

使用pug模板生成html,而后生成pdf,可以用上css描述,
可以结合python运算结果;
本身依赖Weasyprint library,这个库又依赖许多其他库(比如Cairo,GTK),且对windows系统不太友好;

文档
https://edinburgh-genome-foundry.github.io/pdf_reports
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html

代码
https://github.com/Edinburgh-Genome-Foundry/pdf_reports


Creating PDF Reports with Pandas, Jinja and WeasyPrint 
该方法和上面是异曲同工,直接用html和weasyPrint实现

链接
https://pbpython.com/pdf-reports.html

ReportLab

开源的产品不支持模板,
https://www.reportlab.com/dev/opensource/

​​​​​​Python reportlab教程__羊的博客-CSDN博客_python reportlab教程

python之Reportlab模块 - Hu知非 - 博客园
ReportLabPlus
商业产品支持模板

另:
用python或其他高级语言计算出中间结果,存于本地或表中,
用fine report等工具呈现;

Superset 是一款由 Airbnb 开源的“现代化的企业级 BI(商业智能) Web 应用程序”。

Python开源BI工具Superset的搭建与使用_可以叫我才哥的博客-CSDN博客_python superset

其他参考:

Python操作PDF-文本和图片提取(使用PyPDF2和PyMuPDF) - 师者乐享 - 博客园

5 Python Libraries for Reporting and Factsheets

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值