I still have the issue that PdfViewer only shows/renders the first two pages. All remaining pages are shown as white, empty pages. |
We are unable to reproduce the issue in our side. We were performing on demand rendering of PDF pages in SfPdfViewer, it will display only the number of pages which will accommodate in the view port of PDF Viewer.
For example: Consider If the PDF Viewer can able to display only 3 pages in the viewport. We will render only 3 pages and rest of the pages will not be rendered. Once you scroll up / scroll down, the previous or next pages will be cleared, and the new 3 pages will be rendered and displayed with respect to the view port.
Please find the simple sample from the below link with which we tried to reproduce the issue.
Sample Link:
On-demand rendering of PDF document in SfPdfViewer helps us to improve performance and memory optimization.
|
sometimes it seems to load the remaining pages, if I scroll down and then scroll up to the 2nd/3rd page again. Then the app hangs for a second or so, and then, all of a sudden, all remaining pages are rendered. If I don't scroll up again (and just, let's say, scroll down to page 5), I can wait indefinitely, and nothing happens (i.e. the page stays white). |
We could see application hangs for a second while rendering the PDF pages during scrolling and we suspect this to be a defect. We have forwarded the details to our development team for analysis and we will update you with more details on 14th February 2019.
Note: We were unable to reproduce the issue “PDF pages are not rendered over an indefinite time if we don’t scroll up”. Can you please share the modified sample to replicate the issue? It will be helpful for us to analyze further. |