You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Web browser and its version: Webview component inside Xamarin.Droid
Operating system and its version: Android
PDF.js version: 2.2.228
Steps to reproduce the problem:
With the implementation we made (leitor.js) and always using the same PDF file, randomly in PDF preview sometimes opens correctly and sometimes the PDF is displayed vertically and horizontally inverted.
What is the expected behavior? (add screenshot)
Always open the .pdf file in the horizontal / vertical position correctly.
What went wrong? (add screenshot)
The PDF file is being opened upside down on its horizontal and vertical axis.
You can check if there are warnings/errors in the console, because usually something is printed if this occurs. It looks like either an upstream issue (#5273) or a usage issue (#10521).
Using the library to render one page at a time as the Previous/Next example, this error occurs. I really couldn't notice nothing wrong with the implementation.
I've changed to display the whole file with an scroll, and it's displaying correctly now.
Looking at this again I think the problem is that you're getting a canvas/context only once and reuse it to render the next page. That's not intended; you should use a new canvas for every page. See also #9430 (comment).
Uh oh!
There was an error while loading. Please reload this page.
Configuration:
Steps to reproduce the problem:
With the implementation we made (leitor.js) and always using the same PDF file, randomly in PDF preview sometimes opens correctly and sometimes the PDF is displayed vertically and horizontally inverted.
What is the expected behavior? (add screenshot)
Always open the .pdf file in the horizontal / vertical position correctly.
What went wrong? (add screenshot)
The PDF file is being opened upside down on its horizontal and vertical axis.
Link to the code: https://gist.github.com/andyalmeida/95204b703bd1aea4686143a482377e75
The text was updated successfully, but these errors were encountered: