packages.flutter icon indicating copy to clipboard operation
packages.flutter copied to clipboard

Width and height are incorrect on rotated page in MacOS

Open timovandeput opened this issue 2 years ago • 0 comments

Describe the bug When loading a document with a (90 or 270 degrees) rotated page, the dimensions of the page as reported by PdfPage are not swapped when running on MacOS.

To Reproduce Steps to reproduce the behavior:

  1. Load a document containing a rotated page, like e.g. 90-degrees-rotated.pdf.
  2. Open first page as a PdfPage.
  3. Print the width and height of the page.

Do this on Web and on MacOS native.

Observe that on Web it shows the (rotated) portrait dimensions, and on MacOS it shows the (unrotated) landscape dimensions.

Expected behavior Width and height show the same portrait size on both platforms.

Screenshots N/A

Smartphone (please complete the following information): N/A

Additional context PDFX version 2.3.0

timovandeput avatar Nov 02 '22 11:11 timovandeput