packages.flutter
packages.flutter copied to clipboard
Width and height are incorrect on rotated page in MacOS
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:
- Load a document containing a rotated page, like e.g. 90-degrees-rotated.pdf.
- Open first page as a
PdfPage
. - 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