Hey, here is something cool!
First of all, in printtopdf, Height and Width do not set orientation. It seems that the long direction is the height, and the short direction is width, no matter how they are written in the procedure.
Secondly, I have envelopes in one tray, and letter paper in the second, and the choice is made accordingly. That is great!
Maybe there is some hope for me, yet!