Utility to build A5 pages into A4 booklet, suitable for double-sided printing.
Operates on PDFs. The core algorithm is cleanly separated, so it could be easily re-worked for a different type of document.
No sizes are hardcoded, so it will work for other sizes.
See script for usage instructions.