This facility puts multiple logical pages on a single physical page. The -twoup-stack operation puts two logical pages on each physical page, rotating them 90 degrees to do so. The new mediabox is thus larger. The -twoup operation does the same, but scales the new sides down so that the media box is unchanged.
Sometimes, for instance to get a printing arrangement right, it’s useful to be able to insert blank pages into a PDF file. cpdf can add blank pages before a given page or pages, or after. The pages in question are specified by a range in the usual way:
The dimensions of the padded page are derived from the boxes (media box, crop box etc.) of the page after or before which the padding is to be applied.
The -pad-every n operation places a blank page after every n pages, excluding any last one. For example…
…on a 9 page document adds a blank page after pages 3 and 6.
The -pad-multiple n operation adds blank pages so the document has a multiple of n pages. For example: