I want to rearrange the pages in a PDF file. But because I have to rearrange many pages, and the new arrangement has a specific pattern, I would like to do so with a script. Is there a simple program which allows to rearrange the pages in a PDF?
Alternatively I could also extract all pages and merge them together in the order I want. What progams are available to do this?