I would like to automate the process of taking screenshots of a PDF file's pages. I want to be able to specify the zoom (optional) so that the overall image size can be controlled. I would also like to be able to specify the dpi of the screenshots being saved.
Sample PDF file can be found at this link.
I have already tried opening the file with selenium web driver (Firefox), but the scrolling is not supported for rendered PDF files, apparently.
Is there a way to render this PDF file and then use any image processing module like Pillow or Open-CV to take the screenshots, or any module that does it directly?
Asked
Active
Viewed 495 times
3

srdg
- 585
- 1
- 4
- 15
-
1pdf2image module should do the trick. [Here's an answer](https://stackoverflow.com/a/48583124/2900089) describing that. – Somnath Rakshit Dec 13 '20 at 15:02