1
hahastudio 2015-08-07 09:59:11 +08:00
|
2
eriale 2015-08-07 10:01:34 +08:00 1
我是先把doc转换成pdf,然后再转jpg。
你可以用Wand(http://docs.wand-py.org/en/0.4.1/)来转: from wand.image import Image with Image(filename='filename.pdf') as pdf: with pdf.convert('jpeg') as image: image.save(filename='result.jpeg') |
3
gully 2015-08-07 16:41:47 +08:00
使用过好几个, 最靠谱的是基于 mupdf 的 Python 绑定: https://github.com/rk700/PyMuPDF
demo: https://github.com/rk700/PyMuPDF/blob/master/demo/demo.py |