Revert "Rotate documents correctly"

This reverts commit c0b7b178d455f00b21e6317376ab49324bddb340.