Skip to content

Incorrect size of pdf page in landscape orientation. #128

@Daeamon

Description

@Daeamon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions