PDFTron Webviewer Out of Memory large PDF file (70MB)

Product: PDFTron webviewer

Product Version: 7.3.1

Please give a brief summary of your issue:
When we are trying to view a large PDF file (70MB) in PDFtron web viewer inside our web application. After a while, the application will fall to an out of memory exception

Please describe your issue and provide steps to reproduce it:
What we are doing right now:

  • Linearized PDF file when going out of the server
    image
  • Feeding the webviewer via docViewer.loadDocument() using API endpoint that returns byte()

Not yet implemented:

  • byte range - when we tried to add byte range to our API the PDFTron webviewer was taking so long to load the document (it was loading a 70MB per 1MB of partial content).

Warnings:

Regards,
Christian P.

Hi Christian,

I see that you’re using WebViewer 7.3.1. The latest release of WebViewer is now 8.9.0. Have you tried to use the latest version of WebViewer?

Best Regards,
Zach Serviss
Web Development Support Engineer
PDFTron Systems, Inc.

Upgrading to 8.9.0 did help with the performance. Thank you.

However, we are encountering another issue when we load certain PDFs.
Exception: \n\t Message: Doc root not found\n\t Filename: \n\t Function: GetRoot\n\t Linenumber:

Hi Christian,

That seems to indicate that there is a problem with the files that you’re loading. I would try loading them locally first, if successful then I would check that the files you’re retrieving are stored correctly in your server.

Best Regards,
Zach Serviss
Web Development Support Engineer
PDFTron Systems, Inc.