We have checked 200 MB file of both PDF and TIFF in HTML web document viewer , However we have noticed that PDF take more time to load on document viewer then Tiff
can you help us to understand how can we improve PDF performance
Thanks
Jwalit Katira
Re: Big PDF file take more time to load then tiff on HTML web document viewer
TIFF file is raster image and can be rendered only as raster image. PDF document is a vector document and can be rendered as vector SVG image or as raster image. How do you render PDF document in VintaSoft Web Image Viewer?
Select "View" menu and click "Image viewer settings" button, "Image viewer settings" dialog will appear, in "Other settings" section disable the "Use vector rendering for documents" option, close the dialog and see the result => The web image viewer will render image tiles for each image zoom.
Click "Image viewer settings" button again, "Image viewer settings" dialog will appear, in "Other settings" section enable the "Use vector rendering for documents" option, close the dialog and see the result => The web image viewer will render PDF page only once as a vector SVG image.
Best regards, Alexander
Re: Big PDF file take more time to load then tiff on HTML web document viewer
We have been using useVectorRendering false to render PDF. But as per your suggestion we have started using useVectorRendering true for PDF but we do not found any performance gain while loading big PDF in document viewer.
You can replicate the issue by verifying PDF file with 200 MB of file size in web document viewer
Thanks
Jwalit Katira
Re: Big PDF file take more time to load then tiff on HTML web document viewer
Please measure the loading times for TIFF and PDF documents using the following steps:
Open VintaSoft ASP.NET Core Document Viewer in Chrome.
Open the developer console (press F12 or Ctrl+I key) and go to the "Network" tab.
Open large TIFF document and analyze actions, which occur in "Network" tab. Also please get the execution time for each action.
Open large PDF document and analyze actions, which occur in "Network" tab. Also please get the execution time for each action.
Compare list of actions, which occured for TIFF and PDF documents, and try to understand why the loading times for TIFF and PDF documents are different.
Let me know results of your test.
Best regards, Alexander
Re: Big PDF file take more time to load then tiff on HTML web document viewer
I have checked in network tab , Getimgeinfo request take more time in PDF file then in Tiff file , please check below recording where i have using 1 GB Tiff which load faster then 400 MB PDF in web document viewer demo
We tested the performance of VintasoftImageCollectionWebService.GetImageFileInfo method and found that the method performance is good.
After this we debugged JavaScript code and found that delay occurs in WebUiAnnotationListPanelJS class because the annotation list panel creates UI for information about annotations in 12.736 pages.
Please try to open your PDF document in VintaSoft ASP.NET Core Imaging Demo (this demo does not work with annotations) and you will see that PDF document is opening faster.
We will try to improve the performance of WebUiAnnotationListPanelJS class for improving the performance in VintaSoft ASP.NET Core Document Viewer Demo.
Best regards, Alexander
Re: Big PDF file take more time to load then tiff on HTML web document viewer