如何在Python中从HTML/CSS(包括图像)源生成PDF? [英] How to generate a PDF from an HTML / CSS (including images) source in Python?

查看:53
本文介绍了如何在Python中从HTML/CSS(包括图像)源生成PDF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个HTML/CSS页面,其中包含一些图像,我想用Python从该源生成PDF-可能吗?

Let's say I've got an HTML / CSS page with some images in it, and I wanted to generate a PDF from that source in Python - possible?

推荐答案

http://www.xhtml2pdf.com/

安装对我来说有点古怪,但否则效果很好.

install was a little quirky for me, but otherwise it worked fine.

这篇关于如何在Python中从HTML/CSS(包括图像)源生成PDF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆