开发者

How can I convert PDF pages to images?

开发者_开发知识库

I need save PDF pages as images.

Is this possible with pypdf?


As far as I know there is no good way to do this, not with pyPdf or any other libraries I've seen. PIL supports writing, but not reading PDF so it doesn't help here, either. Such support would be quite nice to have. I'd recommend using ImageMagick as a work around, you can call it with subprocess from your script, and have it handle the conversion.


ImageMagick also has Python bindings available, so you could output your images without having to use subprocess

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜