Query |
Details |
I want to jump directly to a page or bookmark after opening/loading a pdf document. But when I am doing this the initial load time is very bad...
The interessting thing is, that if I wait a short time and call afterwards GoToPage(), the load time is much better. I have attached an example project.
Is there a better way or a more correct way to set an initial page or bookmark? What I am doing wrong?
|
We are able to reproduce the issue “Pdf document take more time for initial rendering while using GotoPage() API” in our side. We have forwarded this issue to our development team for further analysis and we will update further details on 8th August 2019. |
I also have made the oberservation if I disable "Prefer 32-bit" in the project settings, the Pdfium x64 dll is used. With this setting disabled, the pdf viewer is much faster. This is supprising because I cannot see any performance difference between opening the same pdf document on a 32 bit system and a 64 bit system with chromium (which also uses pdfium). Does the syncfusion nuget uses and outdated, different or invalid pdfium version? |
No, it does not depends up on the Pdfium dll version. We have managed the 32-bit and 64-bit for some memory constraints. Due to this memory constraints, in the 32-bit platform targeted WPF application, we keep only limited pages in live for reading i.e., we keep only the pages which are present in the view port in on-demand basis. When a page goes out of the view port, we dispose it immediately to release the memory held. Once we scroll to that page, it will be rendered again.
Since we are handling the rendering and disposing process in on-demand basis based on the present scroll value for the memory optimization, the scroll is little harder when comparing to 64-bit platform targeted application. In 64-bit platform targeted application we keep more pages in buffer to provide smooth scrolling as memory constraints here is lesser when compare to 32-bit. This is the actual behavior of PDF viewer in WPF application. |
What is the correct way to jump to a bookmark programmatically? I have read the documentation [0]. But I cannot find the GoToBookmkark method... What is the pdfDocumentView and how can I get it? |
PdfDocumentView is a control that is used to view the pdf document. To know more information about PdfDocumentview class, kindly refer to the following link,
GoToBookmark() API is available in PdfDocumentView class. We have created a simple sample based on your requirement to go the bookmark specific page and it can be downloaded from the below link,
Kindly let us know that above information meets your requirement or not. |
Query |
Details |
Is the PdfDocumentView intended to be used as a basis for a custom pdf viewer control or are there any possibilities to add these Toolbars from the PdfViewerControl to the PdfDocumentView? |
It is not possible to add toolbar to PdfDocumentView from PdfViewerControl. Since PdfDocumentView control is exclusive only for viewing the PDF documents and it does not support other built-in UI features like toolbar, search bar, bookmarks etc., However, we have created a simple sample to use custom toolbar in PdfDocumentView and it can be downloaded from the below link,
|
Is there any reason why the GoToBookmark method is not available for the PdfViewerControl (the GoToPage, GoToFirstPage are available there)? |
When implementing the bookmark feature, we did not consider implementing GoToBookmark() API in PdfViewerControl as we can perform the navigation from UI level. Since we support hiding the toolbar from PdfViewerControl using ShowToolbar property
we exposed the APIs for toolbar functionalities in PdfViewerControl too.
However, based on your request, we will validate the feasibility in implement the same and we will update further details on August 9th, 2019
|