Today I published RC2, full version is 1.50.4845-RC2a.
Changes were made with respect to rotated PDF pages.
The matter is complex and not everything is working as expected.
When using PDF pages with rotation as XPdfForms, everything works as expected.
But when modifying PDF pages with rotation, I have to add a hack:
Code:
page.Orientation = PageOrientation.Portrait;
This assignment can be made unconditionally. Pages with Rotate 0 or 180 are already portrait, pages with Rotate 90 or 270 are landscape, but modifying works only when they are set to portrait.
Using them as XPdfForms works only if pages with rotation 90 or 270 are set to landscape.
There is something wrong with the linking of orientation and rotation in PDFsharp - but I do not understand what is wrong and how to make it right.
I'm afraid for 1.50 stable it will have to be as it is with 1.50 RC2a. Not perfect, but better than before.
I hope there are no regressions with those changes.
Do not use "1.50.4844-RC2" - with that version there are some regressions which I did not notice before publishing to NuGet. Use "1.50.4845-RC2a" instead.