react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Transform rotate works after the layout is calculated

Open chathu-novade opened this issue 2 years ago • 0 comments

Describe the bug Seems transform rotate happens after layout width and height is calculated. If we want to make a full width landscape image to a full height portrait this doesn't works. It will create a full width image and then do the transformation.

To Reproduce Steps to reproduce the behavior including code snippet (if applies):

  1. Go to the repl link below
  2. See error

react-pdf REPL

Expected behavior It should do the transform first and then handle the layout. or any option to define transform should happen first.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. MacOS, Windows]
  • React-pdf version [e.g. v3.0.0]

chathu-novade avatar Sep 09 '22 03:09 chathu-novade