I’m looking for linux software or plugin that, in addition to putting the front and back cover side by side on the same leaf etc, allows me to subdivide a long pdf into sections of 8 leaves or so, which can each be printed and stapled, before final assembly of the sections into a pamphlet or booklet.

It would make me very happy if it runs locally, rather than being a web page.

Does anyone have experience with this kind of thing?