1
hahastudio 2015 年 8 月 7 日
|
2
eriale 2015 年 8 月 7 日 我是先把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 年 8 月 7 日
使用过好几个, 最靠谱的是基于 mupdf 的 Python 绑定: https://github.com/rk700/PyMuPDF
demo: https://github.com/rk700/PyMuPDF/blob/master/demo/demo.py |