this is just a simple program i mocked up in an afternoon to help me make little booklets from a pdf
it works by printing each page a certain way so you fold a piece of paper giving 8 pages on a single piece of paper that can be read like a book
curl https://raw.githubusercontent.com/notwithering/octalpdf/refs/heads/main/octalpdf.sh > ~/.local/bin/octalpdf
chmod +x ~/.local/bin/octalpdf- awk
- ghostscript
- grep
- pdfjam (of texlive-core)
- pdftk
pacman --needed -S awk ghostscript grep texlive-core pdftk