Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect size of pdf page in landscape orientation. #128

Open
Daeamon opened this issue Jun 24, 2020 · 0 comments
Open

Incorrect size of pdf page in landscape orientation. #128

Daeamon opened this issue Jun 24, 2020 · 0 comments

Comments

@Daeamon
Copy link

Daeamon commented Jun 24, 2020

Hello, i have issue with incorrect calculated page size pdfsharp 1.50.5147.
In 1.32.3057 all work fine with this code:
if (page.MediaBox.Width != page.Width.Point || page.MediaBox.Height != page.Height.Point) { page.MediaBox = new PdfRectangle(new XPoint(0, 0), new XPoint(page.Width.Point, page.Height.Point)); }
In example of project the image should appear in the lower right corner of the page.
watermark-to-pdf.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant