I've got one typed story to print as a small (A5) book, and my wife is willing to sew pages together. But one problem is, pages in document must be in specific order: 4-1-2-3-8-5-6-7-etc.
First I tried to find it in LibreOffice print options, but found only 'brochure' mode, which doesn't satisfy our intends.
Found one video on youtube, where author copies text fragments into certain pages of a new OpenOffice document and manually draw squares with page numbers in it. It looks really silly...
Then I tried to convert it into PDF and use GhostScript (which I used to cut page ranges from PDF documents once), but no solution were found still.
Finally I decided to go more straight forward and open file in text editor (gedit) to try and rearrange pages in PostScript code directly. Even though I am front-end developer, file contents makes no sense for me. I know some programming languages but PS is not one of them yet.
It would be nice to find a solution which could be used as a script, and not requires additional software to install on Ubuntu.