How to Optimize Viewing for SVG-Heavy PDF Documents

Modified on Wed, Sep 18, 2024 at 3:59 PM

I have a PDF with many SVG layers and dense content on each page. Limiting pages makes no difference because each page causes the browser to lag. Also it takes a long time to load. Are there any settings to optimize the loading and viewing of these types of documents?


Optimizing Loading and Viewing of PDFs with SVG Layers and Dense Content


If your PDF contains multiple SVG layers and dense content, you may experience slow loading times and browser lag, even when limiting the number of pages. This issue arises because each page contains large raster files or high-resolution images, which generate complex and heavy SVGs that are taxing on the browser.


To optimize performance, you can adjust the `svgMaxImageSize` setting. This option controls the maximum allowable edge length for images when generating SVG files. By reducing the size of images in the SVG output, you can significantly improve browser handling and load times. 


How to Adjust `svgMaxImageSize`


1. Per-session Configuration: You can set the `svgMaxImageSize` for individual viewing sessions. This allows you to control SVG image sizes on a per-session basis, ensuring better performance when dealing with specific PDFs. For more information,  refer to our documentation: https://help.accusoft.com/PrizmDoc/latest/HTML/viewing-sessions.html#post-pccisv1viewingsession.


2. Global Configuration: To set a default value across all sessions, you can modify the central configuration file using the `fidelity.svgMaxImageSize` option. This will reduce image sizes in all generated SVGs, improving the overall performance when viewing documents. For more details on configuring this setting globally, see here: https://help.accusoft.com/PrizmDoc/latest/HTML/central-configuration.html#i-heading-fidelity-svgmaximagesize 


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article