Paper trays, duplex, duplex with tumble, and cutting are specifiable in postscript; this is `setpagedevice`. Even things like custom stapler options (staple first two pages, etc) can be specified. See something like https://support.hp.com/us-en/document/bpp01888 for docs