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
精彩评论