Rotate documents correctly

Set correct size of rendered images when a rotation
is requested. Use "rotate" command to rotate documents
instead of setting of "Orientation". Adjust offsets
accordingly. Don't execute "setpagedevice" when rendering
to "display" device.

https://bugs.freedesktop.org/show_bug.cgi?id=76450