wojtekmaj / react-pdf

Display PDFs in your React app as easily as if they were images.

Home Page:https://projects.wojtekmaj.pl/react-pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document Page rotates by default

valentimcanejo opened this issue · comments

Before you start - checklist

  • I followed instructions in documentation written for my React-PDF version
  • I have checked if this bug is not already reported
  • I have checked if an issue is not listed in Known issues
  • If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo

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

  • Browser (if applicable):
  • React-PDF version:
  • React version:
  • Webpack version (if applicable):

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