Pdf.js: Slow rendering of PDF document

Created on 9 Apr 2019  路  7Comments  路  Source: mozilla/pdf.js

Attach (recommended) or Link to PDF file here:
Document 24087563_noclientinfo.pdf attached below.

Configuration:
Web browser and its version: Firefox, Chrome, IE
Operating system and its version: Windows 7, Windows 10
PDF.js version: latest (or whatever's on mozilla.github.io/pdf.js/web/viewer.html)
Is a browser extension: No

Steps to reproduce the problem:
Open the PDF in the Demo viewer

What is the expected behavior? (add screenshot)
Expected the PDF to open and render each page in a second or less.

What went wrong? (add screenshot)
The document is taking over 5 seconds to open and render.
Page 4 takes the longest to render.

1-core 2-performance

Most helpful comment

Page 4 has a JPX image (3507 x 2480, so probably 300dpi) but its size is 4 MB. The page 3 image is much smaller (180KB) despite that it looks similar. This PDF was created by "Redax Enterprise Server 3.1.2 Linux Kernel 2.6 64bit Dec 6 2010 Library 9.0.1".

All 7 comments

Closing until the PDF file is provided (in which case we can reopen this), otherwise the issue is not actionable.

Page 4 has a JPX image (3507 x 2480, so probably 300dpi) but its size is 4 MB. The page 3 image is much smaller (180KB) despite that it looks similar. This PDF was created by "Redax Enterprise Server 3.1.2 Linux Kernel 2.6 64bit Dec 6 2010 Library 9.0.1".

From our analysis this PDF is made up of many objects which is causing a delay for all pages.
I dont think PDF.js is processing this as images but as objects.
We are doing further analysis in-house to see if we can provide further insight.

We have analysed this as far as we can. Same conclusion as THausherr

I've just tried opening this in Chrome on my macbook air, 8GB ram (about 5 years old). seems to load fine for me:

const pdfjsVersion = '2.7.90';
const pdfjsBuild = '6728c8fa6';

HI amit77 thank you for your comment.
I can only conclude this is a windows specific issue if you cannot see this on a mac.
Many thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jigskpatel picture jigskpatel  路  3Comments

aaronshaf picture aaronshaf  路  3Comments

BrennanDuffey picture BrennanDuffey  路  3Comments

sujit-baniya picture sujit-baniya  路  3Comments

AlexP3 picture AlexP3  路  3Comments