This thread was archived. Jei jums reikia pagalbos, užduokite naują klausimą.
Firefox 38 display white text in native PDF viewer
Since Firefox 38 (not sure, might be also since 37) the native Firefox PDF Viewer pdfjs display only white text in all PDF files I open. I checked in about:config and I have the same default settings there like a colleague who has it working fine.
If I set pdfjs.disableFontFace to true it works on some PDF files but for example not on files which I generate with FPDF (nothing changed on the generation code). The font used in FPDF is Arial, so no problem there.
All Replies (4)
Try Firefox Safe Mode to see if the problem goes away. Firefox Safe Mode is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).
If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
- Click the menu button , click Help and select Restart with Add-ons Disabled.
If Firefox is not running, you can start Firefox in Safe Mode as follows:
- On Windows: Hold the Shift key when you open the Firefox desktop or Start menu shortcut.
- On Mac: Hold the option key while starting Firefox.
- On Linux: Quit Firefox, go to your Terminal and run firefox -safe-mode
(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
When the Firefox Safe Mode window appears, select "Start in Safe Mode".
If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems article to find the cause.
To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.
When you figure out what's causing your issues, please let us know. It might help others with the same problem.
I tried Safe Mode and I also disabled all Plugins but to no avail, PDFs are still rendered in white text.
I attached a picture of the problem. On the left is the PDF marked with CTRL+A while being out of focus. On the right is the same pdf without marked text.
Aoshi, I can see the screenshot of the issue, however in order to move forward we will need this information to file an issue in bugzilla.
- Troubleshooting information: about configuration,
- screenshots (what you have attached in your current post)
- and test pdf (generated by FPDF)
This is the bug template: https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&compon... Be sure to include the attachements in there as well, please post back with the bug I am happy to add any more information and add the subject matter experts to the cc list :-)
It's normal for the selectable text layer to use transparent color so as to avoid obscuring the background canvas (not selectable), which should match the original document. I don't think there's any way to know whether the text is white on the background canvas or completely missing.
The pdf.js issues list for the query text missing yields quite a few open items, some of which seem to be be sensitive to the graphics card driver software: https://github.com/mozilla/pdf.js/issues?q=is%3Aissue+is%3Aopen+text+missing