-
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
Taking too long to show pdf with more number of pages #39
Comments
Current implementation does exactly that, we don't render all pages. |
It is taking around 3-4 seconds to load just the first page of a PDF with 10 to 20 pages. |
@pradeep-orbi which performance do you see on sample with 200+ pages on the same device? |
I did not try the sample app. It is nothing to do with device. This issue was there in all the devices. This is one of the PDFs with which i have the issue |
Which callback did you use to show and hide the loader? |
@miq0717 showing the loader before calling pdf_view.fromFile(localPdfFile).show() method And hiding the loader in PDFRegionDecoder class. just before the decodeRegion() method returns a bitmap, i'm hiding the loader. |
For some of the PDFs with 10 or more pages, it is taking too long to render the pdf. At least we should show the first page quickly, then on demand we can progressively load other pages when the user scrolls it.
The text was updated successfully, but these errors were encountered: