-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pages are cut when document have pages of different size #10
Comments
com/pdfview/PDFRegionDecoder.kt:28 - currently we taking width for the first page always. So this library doesn't support documents with various width. |
I expect this to not be difficult. Just need to test edge cases carefully... |
Hi, It's fast to get their size during initialization asynchronously, even there are hundreds of pages. I choose to scan all of them because it's the simplest way. While google pdf viewer seems to choose to always scan from 0 to current page, as a result lt's a bit slow to jump across pages randomly. in my logic I treat the entire pdf as a huge image of height=sum of all page's height, width=maximum page width, and pages of smaller widths would have a horizontal offset. |
Hi Found a simple way to solve the issue
|
Hi,
When I try to display a document with pages that have different sizes (last pages have a bigger width), the bigger ones are cut.
Here is a document to reproduce the issue:
document
The text was updated successfully, but these errors were encountered: