react-pdf
react-pdf copied to clipboard
Transform rotate works after the layout is calculated
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):
- Go to the repl link below
- See error
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]