weasyprint 基于html 的pdf 生成框架

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/

posted on 2024-10-25 08:00  荣锋亮  阅读(353)  评论(0)    收藏  举报

导航