issue #22991 - on at least some macs, explicitly setting the paper size changes the orientation back to portrait. need to test on a different mac and on both windows and linux.