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.