ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.06k stars 235 forks source link

Changed PdfPage contructor to take MediaBox dimensions into account #330

Closed Hacnar closed 1 year ago

Hacnar commented 1 year ago

I've expanded the condition that sets orientation in PdfPage constructor. For Landscape value to be set, MediaBox height must be higher than width when it is rotated 90 degrees left or right.