Returns this page setup turned to orientation: width and height swap when it differs, the margins stay on their sides.
public readonly PageSetup WithOrientation(PageOrientation orientation)
The orientation wanted.
ISO 32000-2 §7.7.3.3, Table 31: the media box itself is turned; the page's Rotate entry stays 0.