slothario wrote:
Do they need help integrating these homegrown fixes into the library?
No. It just takes some time between releases.
It seems you tried the hack that was not implemented in the current internal version of PDFsharp.
It would be better to have one tested solution and not three proposed hacks.
The PDFsharp team wants one solution that works for all files.
The sizes of Page and MediaBox can be different - that's why both settings are in the PDF.
Your hack really is a hack as it ignores the settings from the file.
My proposed change cures the root problem: treating rotation incorrectly which brings the two boxes out of sync.
slothario wrote:
I'm not sure if the rest of the code would apply to me because my problem doesn't seem to have anything to do with rotation.
The page in your document is marked with "/ROTATE 90", so this is exactly the problem that does not occur when a few lines in PDFsharp are commented out.