PDFBOX-4245: fix bug and simplify code that adjusts for rotations so that initial translation doesn't get lost, by Jiri Kunhart