This uses imageMagick to create a pocketmod-ready pdf, using a pdf of 8 pages.
The idea and original code is from author Ghislain LEVEQUE:
https://boardgamegeek.com/thread/803592/best-way-make-pocketmod
For my use, I'm trying to pocketmod: https://darebee.com/programs/30-days-of-hiit.html
..so I can carry it easily around. Hopefully I'll spend more time working out than the hours spent to get this to work! :)
The tool to pull out 8 pages from the pdf file is: pdftk
The tool to unsecure pdf is: https://www.freemypdf.com/