Ok so I want to download this embedded PDF/document in order to physically print it. The website allows me to view it as much as I want, but is asking me to fork over 25 + tax USD so i can download the document.
Obviously, i don't want to do that, so I try to download the embedded document via inspect element. But, the weird thing is it not actually loading a pdf, but like really small pictures of each page:
So, my question is basically how can I download this document in order to print it?
import time
import os
import subprocess
pages = dialog.input_dialog(title='', message='Number of pages:', default='5').data
time.sleep(1)
for k in range(1,int(pages)):
subprocess.run(["xdotool", "key", "ctrl+1"]) # Plugin's hotkey
time.sleep(2)
subprocess.run(["xdotool", "click", "1"]) # Mouseclick
time.sleep(2)
subprocess.run(["xdotool", "key", "ctrl+1"]) # to screenshot the last one
In the bottom of a program, set a hotkey to launch it (I set it to Home).
Place mouse pointer over next page button, so it clicks each time.
Lauch my Autokey script via Home button.
Enter number of pages.
See how it does it.
Open screenshots directory in XnView, select them. Locate it's BatchConvert tool, in Actions tab select a crop action and adjust it to pages' margins. ACHTUNG The last one should be done differently, you can open it in XnV and crop this one alone.
Use any tool to stitch them back together into a PDF. I've used PDF Arranger: https://github.com/pdfarranger/pdfarranger But some user down there said it crashed on 600-something pages document.