Big PDF file take more time to load then tiff on HTML web document viewer

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
jwalit.katira
Posts: 31
Joined: Mon Sep 18, 2023 1:41 pm

Big PDF file take more time to load then tiff on HTML web document viewer

Post by jwalit.katira »

Hello

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
Alex
Site Admin
Posts: 2319
Joined: Thu Jul 10, 2008 2:21 pm

Re: Big PDF file take more time to load then tiff on HTML web document viewer

Post by Alex »

Hello Jwalit,

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?

Please do the following test:
  • Open on-line VintaSoft Document Viewer Demo for ASP.NET Core: https://demos.vintasoft.com/AspNetCoreD ... iewerDemo/
  • 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
jwalit.katira
Posts: 31
Joined: Mon Sep 18, 2023 1:41 pm

Re: Big PDF file take more time to load then tiff on HTML web document viewer

Post by jwalit.katira »

Hello Alex,

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
Alex
Site Admin
Posts: 2319
Joined: Thu Jul 10, 2008 2:21 pm

Re: Big PDF file take more time to load then tiff on HTML web document viewer

Post by Alex »

Hello Jwalit,

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
jwalit.katira
Posts: 31
Joined: Mon Sep 18, 2023 1:41 pm

Re: Big PDF file take more time to load then tiff on HTML web document viewer

Post by jwalit.katira »

Hello Alex,

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

https://advantstorage1.blob.core.window ... rk_tab.mp4

Let me know if any query
Thank
Jwalit Katira
Alex
Site Admin
Posts: 2319
Joined: Thu Jul 10, 2008 2:21 pm

Re: Big PDF file take more time to load then tiff on HTML web document viewer

Post by Alex »

Hello Jwalit,

Thank you for information.

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
Alex
Site Admin
Posts: 2319
Joined: Thu Jul 10, 2008 2:21 pm

Re: Big PDF file take more time to load then tiff on HTML web document viewer

Post by Alex »

Hello Jwalit,

We optimized code of WebUiAnnotationListPanelJS class and now it works faster. The optimized algorithm will be available in version 12.3.

Best regards, Alexander
Alex
Site Admin
Posts: 2319
Joined: Thu Jul 10, 2008 2:21 pm

Re: Big PDF file take more time to load then tiff on HTML web document viewer

Post by Alex »

Hello Jwalit,

VintaSoft Imaging .NET SDK 12.3 has been released today.

Best regards, Alexander
Post Reply