Long rendering time on the pdfjs express viewer

Which product are you using?
PDF.js Express Plus

PDF.js Express Version
8.7.0

Detailed description of issue
I have quite big documents (1page, about 11MB).
When I open these documents rendering take a very very long time.
I received a long time ago documentLoaded event, but document is still rendering.
When I zoom in, I can see only blurred for a very long time (even about 10 minutes).
The document is not responsive and not readable…
Moreover from times to time I received out of memory browser exception on weaker device.

In another viewers (default google chrome pdf viewer, adobe reader), document looks good and is rendered fast.

How can I reduce rendering time as in other viewers?

Expected behaviour
Loaded document is rendering fast. Document shoul be also responsive and readable.

Does your issue happen with every document, or just one?
Evry big document.

Link to document
The bigger file, the slower rendering.
For example: sample.pdf (5.8 MB)

Code snippet

await this.viewer.UI.loadDocument(fileAdress, {  extension: 'pdf', password: '1234' });

Hi @user45

This is expected behaviour as the rendering is based on PDFjs and am getting similar behaviour.

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

I’m not sure that this can be expected behaviour because it’s unuseful for big files.

So, for sure we can’t any way to improve rendering time?

Here is our guide on PDF optimization.

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