wojtekmaj / react-pdf

Display PDFs in your React app as easily as if they were images.
https://projects.wojtekmaj.pl/react-pdf
MIT License
9.01k stars 861 forks source link

Document Page rotates by default #1736

Open valentimcanejo opened 4 months ago

valentimcanejo commented 4 months ago

Before you start - checklist

Description

I'm using the document and page tags to render a pdf, but he's rotating my document by default, even if I put "0" in the rotate prop. How can I remove this default behavior?

Steps to reproduce

Show a pdf in the document component.

Expected behavior

Document page will keep it's original rotation

Actual behavior

Document page ignores the pdf default rotation and creates another one

Additional information

No response

Environment

biennui1998mu commented 3 months ago

I have an issue when a pdf file has a horizontal page and another vertical. The lib makes the horizontal page rotate 90degs to become vertical. Is this issue close to yours @valentimcanejo and do you have any ideas for this? @wojtekmaj

xavierh81 commented 1 month ago

@valentimcanejo I have the same behavior on some PDFs (not all). Have you find a way to deal with that ?