weasyprint 基于html 的pdf 生成框架

阅读 6

2024-11-06

weasyprint 基于html 的pdf 生成框架,我们可以基于css+ html 生成高质量的pdf 文件,weasyprint 使用简单

说明

weasyprint 的速度并不是很快,如果希望快速生成pdf文件的,可以选择其他解决方案,md2pdf 就使用了WeasyPrint
只是为了支持灵活的处理,基本还基于了模版引擎jinja2

参考资料

https://github.com/Kozea/WeasyPrint

https://doc.courtbouillon.org/weasyprint/stable/

https://github.com/jmaupetit/md2pdf

https://wkhtmltopdf.org/https://pagedjs.org/

精彩评论(0)

0 0 举报