Bug raised, also discussed by another user at
http://forum.pdfsharp.net/viewtopic.php?t=610&highlight=rotate&mforum=pdfsharp.
Scenario:
I have a Portrait PDF, with either no Rotation value set, or it is set to 0.
I rotate by 90 degrees, giving me a Rotation from 0 to 90, the content is 90 degrees to the right, but the page is still portrait (wrong).
I rotate the result by another 90, a rotation from 90 to 180. Now the content is upside down in portrait (correct).
I rotate the result by another 90, a rotation from 180 to 270. Now the content is on its side in landscape (correct).
I rotate the result by another 90, a rotation from 270 to 0. Now the content is standing in portrait (correct).
I rotate the result by another by 90 degrees, giving me a Rotation from 0 to 90, the content is 90 degrees to the right, but the page is still portrait (wrong).
This sequence can be reversed if I make the 0>90 manually landscape, thus making all the subsequent rotations wrong way round (with content clipped of the side of the page).
I have tried when going back to zero, to subtract the existing rotation, i.e., rather than jump from 270 to 0, rotate by -270 to rotate back anti-clockwise, but this has no effect.
Its worth noting that the content is rotated correctly each time, only the page orientation is coming up wrong (at least when loaded back into Adobe Reader).
Any thoughts?