pdf-ripper
pdf-ripper copied to clipboard
Using dev tools to take screenshots
I'm not sure if this is possible, though if it is, I have a suggestion. Im using this to screenshot my pages on BibliU. They make it very hard to accurately resize the page so that the screenshot quality is good so when I use this app it always comes out fuzzy. Not the apps fault, but I have a suggestion. I managed to use the built in screenshot function on dev tools in order to screenshot the pages. This makes it very high quality and good enough for a PDF.
I don't know Python so I don't know if this is possible, though if an option could be added to utilize this built in screenshot function, then this app would be able to get around issues like BibliU preventing you from adequately resizing pages. It'd also ensure very high quality screenshots even on smaller screens.
Any update on this? I also noticed that the resulting screenshot quality of the pages in the pdf is not so great..
Looked through the code and simply need to change this line https://github.com/jalexw/pdf-ripper/blob/cda02dcd3d5999e97bec53c580d868c045e0b107/lib/pdfgenerator.py#L24
Looking at the docs https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#pdf
to increase the quality you just need to increase the resolution parameter to something like >= 300. For example:
images[0].save(outputPath, "PDF", resolution=300, save_all=True, append_images=images[1:])
Managed to rebuild the dmg file for mac users. https://drive.google.com/file/d/1E0cHgly2-fLrvRGQa7EBN_dMKqDkEFQ1/view?usp=sharing