mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.34k stars 9.97k forks source link

Some fonts are rendered white/invisible #10014

Closed bluefiish closed 5 years ago

bluefiish commented 6 years ago

Attach (recommended) or Link to PDF file here: no_text_1.pdf

Configuration:

Steps to reproduce the problem:

  1. Open Demo page at: https://mozilla.github.io/pdf.js/web/viewer.html
  2. Open the given sample pdf
  3. Some of the given Text is not rendered (or rendered with a white/transparent font color)

What is the expected behavior? (add screenshot) Text should be visible: image

This can be reproduced by (it works in all this cases):

What went wrong? (add screenshot) Text is not visible: image

This issue occurs with several documents of different origins.

SamyCookie commented 6 years ago

This issue does not occur on Debian OS with Firefox 62.0b10 and 52.9.0

timvandermeij commented 6 years ago

@bluefiish Do you have up-to-date graphics drivers? Try seeing if there are updates and apply them. If that doesn't work, are there any errors/warnings in the browser's console when you render this PDF file?

SamyCookie commented 6 years ago

For record, I cannot reproduce on Windows 10 64bit and Fx 61.0.2 either.

kdleijer commented 6 years ago

I can reproduce this issue with the provided PDF on my Windows 7 installation with three browsers installed

According to Windows I have the latest version of the graphics-driver, according to Intel, this graphics-card is discontinued https://www.intel.com/content/www/us/en/support/products/81500/graphics-drivers/graphics-for-2nd-generation-intel-processors/intel-hd-graphics-3000.html

Screenshots attached, they might include some Dutch terms (if translation needed, please let me know) 2018-08-28_10-19-56 2018-08-28_10-21-25 2018-08-28_10-22-54 2018-08-28_10-24-16 2018-08-28_10-25-48

bluefiish commented 6 years ago

Due to your replies i tried to reproduce it on several different computers using Windows 7 and Windows 10 and different browsers.

Results:

I have no Windows 7 installation where the given pdfs is rendered correctly (except Firefox with the setting mentioned above).

As for Windows 10 I have multiple computers where it works and multiple computers where it doesn't work using Chrome and Edge. It always worked or didn't work in both browser. Never just in one. It always worked on Windows 10 with version 1803 but never with Windows 10 version 1709.

SamyCookie commented 6 years ago

@bluefiish What are the graphic hardware used on your computers ? Are their graphic driver up to date ?

bluefiish commented 6 years ago

@SamyCookie For my Windows 7 pc, they are up to date for sure. image

No errors are shown in the console.

I'll try to check it the for one of the Windows 10 v.1709.

SamyCookie commented 6 years ago

@bluefiish it seems to exist a lot more recent driver here for your graphic hardware (2 years younger). Could you update to see if this bug occurs after ?

bluefiish commented 6 years ago

@SamyCookie updated the drivers of one of our Win 10 v.1709 to the latest version. Sadly no difference. Do you need the specs of this driver too? I just tried it on a Win 10 pc as those are of our main concern. I will however try it on my Win 7 machine as well.

SamyCookie commented 6 years ago

Do you need the specs of this driver too ?

Yes, thanks. That could help devs ! You can also get these informations in Firefox by using the url about:support and copy the relevant data in Graphic section

bluefiish commented 6 years ago

For one of my Win 10 v.1709 PCs:

Pre-update: image

After update: unbenannt

If I open it in Firefox 60.1.0esr (32-Bit) I get the following information: PDF 110dd61fd57444010b1ab5ff38782f0f [1.4 pdfeTeX-1.21a / TeX] (PDF.js: 2.0.787) app.js:1118:6 PDF dd51917542631728a83a944fa72c7e58 [1.7 pdfFactory Pro 3.52 (Windows 7 Ultimate x64 German) / pdfFactory Pro www.context-gmbh.de] (PDF.js: 2.0.787)

I'll try it on my Win 7 PC later today, but I except no change as well. I'll check the fonts installed on the different Win 10 machines.

THausherr commented 6 years ago

Same for me: doesn't work W7 with FF 61.0.2, also with Chrome and MSIE. But it works on W10 with PDF.js on Edge.

bluefiish commented 6 years ago

@SamyCookie: Tried to install the driver from the given source. The newer driver is only available for Windows 10. Therefore I am on the newest driver on this computer (Lenovo T540p).

duffy356 commented 6 years ago

Same for me on W7 with Google Chrome (68.0.3440.106) and IE (11) and Firefox (60.1.0).

Graphics Driver updated to: image