There is no way to save part of PDF to PNG with PyPDF2? #936
-
I search for some reliable library to extract part of PDF to PNG. Anyway, how can I crop part of PDF; page width and 100 pixels down from top in PyPDF2? Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
PyPDF2 can extract all images from a PDF. PyPDF2 currently cannot render the page to an image.
You can change the cropbox of a page: https://pypdf2.readthedocs.io/en/latest/user/cropping-and-transforming.html
However, if I remember it correctly, the unit is not (necessarily) in pixels. I would need to look that up in the specs. |
Beta Was this translation helpful? Give feedback.
PyPDF2 can extract all images from a PDF.
PyPDF2 currently cannot render the page to an image.
You can change the cropbox of a page: https://pypdf2.readthedocs.io/en/latest/user/cropping-and-transforming.html
However, if I remember it correctly, the unit is not (necessarily) in pixels. I would need to look that up in the specs.