As usual, lovingly hand-written, with offsets fixed up with mutool clean Tests/LibPDF/rotate.pdf Tests/LibPDF/rotate.pdf