Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于我的一个 python 项目,我正在使用 reportlab 的画布功能生成 pdf 文档。
谁能帮我在reportlab画布上打印一小部分html(p、strong、ul、ol、li、img、对齐)?
提前致谢...
如果这是您想做的事情,您应该考虑将 Platypus 与 ReportLab 结合使用,这是 ReportLab 中的一组内置类,用于从表示页面元素的对象构建文档。或者,如果您想要非常简单,xhtml2pdf 可能会更好。