andrew_bidlaw, (edited )
@andrew_bidlaw@sh.itjust.works avatar

FOR LINUX, COMPLETE AND WORKING

  1. Install xdotool, AutoKey
  2. In Firefox get Save Screenshot: addons.mozilla.org/en-US/…/savescreenshot/ Then, in Firefox Shortcuts add Ctrl+1 as a hotkey to capture visible page.
  3. Create a script for Autokey in Python, mine is:

<span style="color:#323232;">import time
</span><span style="color:#323232;">import os   
</span><span style="color:#323232;">import subprocess
</span><span style="color:#323232;">
</span><span style="color:#323232;">pages = dialog.input_dialog(title='', message='Number of pages:', default='5').data
</span><span style="color:#323232;">
</span><span style="color:#323232;">time.sleep(1)
</span><span style="color:#323232;">for k in range(1,int(pages)):
</span><span style="color:#323232;">    subprocess.run(["xdotool", "key", "ctrl+1"]) # Plugin's hotkey
</span><span style="color:#323232;">    time.sleep(2)
</span><span style="color:#323232;">    subprocess.run(["xdotool", "click", "1"]) # Mouseclick
</span><span style="color:#323232;">    time.sleep(2)
</span><span style="color:#323232;">
</span><span style="color:#323232;">subprocess.run(["xdotool", "key", "ctrl+1"]) # to screenshot the last one
</span>
  1. In the bottom of a program, set a hotkey to launch it (I set it to Home).
  2. Open OP’s page and via Inspect Element find the link to embed. It’s www.sbcaplanroom.com/preview/2477/12610/200647
  3. Press F11, make the whole picture fit.
  4. Place mouse pointer over next page button, so it clicks each time.
  5. Lauch my Autokey script via Home button.
  6. Enter number of pages.
  7. See how it does it.
  8. 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.
  9. Use any tool to stitch them back together into a PDF. I’ve used PDF Arranger: github.com/pdfarranger/pdfarranger But some user down there said it crashed on 600-something pages document.

Result: files.catbox.moe/iivoga.pdf

  • All
  • Subscribed
  • Moderated
  • Favorites
  • piracy@lemmy.dbzer0.com
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #