Save As Functionality - Browser Crash (Error code: Out of Memory)

WebViewer Version: 10.9.0

Do you have an issue with a specific file(s)?

  • Yes. This is only happening for larger files. For example, for this request/document, the total file size is ~175mb (compressed from 397mb), with total page count of 7.6k pages. Additionally, the pdf is only one file BUT it was created from merging 150+ files in ADOBE that were converted to PDF (these files were mainly docx, and PPTX that contain images and slides)

Can you reproduce using one of our samples or online demos?

  • Have not tried.

Are you using the WebViewer server?

  • No

Does the issue only happen on certain browsers?

  • Have tried both Edge and Chrome. Both crash.

Is your issue related to a front-end framework?
-Yes

Is your issue related to annotations?

  • Do not believe so, as there are little to no annotations in the document and we are not including those in the save as document.

Please give a brief summary of your issue:
When using the built in webviewer functionality of saving the document currently in webviewer (Menu-> Save As) the browser takes a minute then crashes. We are not including annotations, or anything else when saving. Additionally, my task manager is showing huge spikes in the browser in regards to memory and cpu. How do I solve this issue, we use this functionality for our users to download and view the document. Additionally, is there a limit on the browser and the PDFS it can handle? If so what is this limit that Apryse has set / knows of? We have not seen this issue with say 4k page documents/pdfs with annotations in the thousands.

Please describe your issue and provide steps to reproduce it:

  1. Uploaded a large pdf file (7.6k pages, 170mb, with pages containing converted PPTX files and docx files).
  2. Apply little to no annotations.
  3. Select the menu hamburger icon and select Save As (select all page range and deselect annotations)
  4. See browser crash due to memory.

Please provide a link to a minimal sample where the issue is reproducible:
Cannot provide, the file contains sensitive content.

I appreciate the help, thank you.

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


Handling large PDF files in the browser can be challenging due to memory constraints, especially when dealing with files that are hundreds of megabytes and contain thousands of pages. Here are some considerations and possible solutions to address the issue:

Some things you can try:

  • Consider optimizing the PDF before loading it in WebViewer. This can help reduce the file size and memory usage.

  • Use the PDF optimization features provided by Apryse to compress images and remove redundant data.

  • Implement PDF streaming to load only the parts of the PDF needed at any given time, reducing memory overhead.

  • Test with a smaller subset of the document to see if the issue persists, which might help identify specific content causing the crash.

  • Check for any memory leaks in your front-end framework that might exacerbate the issue.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

Hi Aman,

Thank you for reaching out.

I can tell you the limit is supposed to be around 2 GB. If your file is 175mb, in theory, it should work.

But as you cannot provide the file, it won’t be easy to help you find a solution that fits your needs.

I was able to both load and save a 1GB file. You can try here:

I invite you to try to load and save your file in our Showcase to see if that works there, this could give us directions.

Best Regards,
Mickaël.

Hello Aman.

As far as I know, it still should work. We would need a sample to investigate your issue here.

Is there any way for you to provide the sample file by private message?

Best Regards,
Mickaël.