python3 pdf_brochure.py source.pdf brochure.pdf
Tested with Python 3.8, will likely work with other Python 3.* versions.
Depends on https://repology.org/project/poppler (uses commands pdfinfo, pdfseparate and pdfunite)
Print the resulting file with these settings:
| Setting | Value | Comment |
|---|---|---|
| Two-sided | Short Edge (Flip) | the less common two-sided print option |
| Pages per side | 2 | that's the brochure trick, ya know? |
| Page ordering | Left to right | |
| Page Scaling | Fit to Printable Area | autoscaling magic |
| Auto Rotate and Center | off | if some pages are landscape oriented, it will behave weirdly without this |
| Orientation | portrait | stack the pages horizontally, not vertically |