I had used this to make a A6 book printing 4 pages per side per A4 sheet: https://www.pdfimpose.it/
Note that they also offer the full code at the bottom, so you can tweak even more the results.