operasoftware / pdf.js

PDF Reader in JavaScript
Apache License 2.0
20 stars 4 forks source link

Missing text on some PDFs #29

Open fritzophrenic opened 9 years ago

fritzophrenic commented 9 years ago

I've seen a few PDFs recently that do not render fully in the browser extension, although they work fine in Acrobat Reader after I download them. Example: http://craigmorton.com/ifr/29-jun00aopa.pdf

There is text missing when I load the PDF in my browser. In that example PDF, in the middle column on the first page, is text "Refer to the 'Red Rock TwoDeparture' from Las Vegas,Nevada, which is a typical Departure Procedure." After that, no further text is rendered in the middle column in the Opera extension. However, there is plenty of actual text there, starting with italic text "This DP is still titled 'SID' and will be changed to DP when it is revised for other aeronautical reasons." That text can be copy-pasted even though it is not visible in the browser extension. It appears visibly in Acrobat Reader.

fritzophrenic commented 9 years ago

Another example which isn't even a very complex PDF: http://www.ieee.org/documents/ieeecitationref.pdf

petef4 commented 9 years ago

I ran up against this problem too. My fix was to disable this extension (PDF Viewer 1.0.606) and enable the plugin (Chrome PDF Viewer in Opera Stable 27.0.1689.54).

Rob--W commented 9 years ago

Cannot reproduce in Chromium 40.0.2214.91 with PDF Viewer 1.0.1061). Perhaps the Opera addon maintainer should update the PDF Viewer?

Try installing a more recent version of the PDF Viewer from the Chrome Web Store: https://chrome.google.com/webstore/detail/pdf-viewer/oemmndcbldboiebfnladdacbdfmadadm

petef4 commented 9 years ago

Also cannot reproduce in Firefox 35.0.1 which has PDF.js built in since FF19.

It seems to be related to, but not the same as, this issue and example problem. https://github.com/mozilla/pdf.js/issues/5592 http://www.pdf-archive.com/2014/12/29/4111112/4111112.pdf

It was fixed on 2014-12-30 but my release stream FF35 still hangs rendering that.