poor print quality from pdf on 332-2012.pdf
Categories
(Firefox :: PDF Viewer, defect, P3)
Tracking
()
People
(Reporter: RossBoylan, Unassigned)
References
(Depends on 3 open bugs)
Details
(Whiteboard: [pdfjs-integration][pdfjs-printing])
Attachments
(1 file)
755.35 KB,
application/pdf
|
Details |
Reporter | ||
Updated•9 years ago
|
Reporter | ||
Comment 2•9 years ago
|
||
Reporter | ||
Comment 4•9 years ago
|
||
Updated•8 years ago
|
Reporter | ||
Comment 8•6 years ago
|
||
Comment 9•4 years ago
|
||
This bug is still relevant, the quality of print from the pdfjs viewer is so far subpar compared to other pdf viewers.
I've taken a photo rather than a scan of two documents, one printed from the builtin chrome pdf viewer, and the other from the firefox pdf viewer.
Here's a side by side comparison at 100% res which really highlights the difference:
https://drive.google.com/file/d/1WPDSX9fnphc8d-6Ju4rDps0NGXXP6qI1/view?usp=sharing
It looks as though firefox is rendering the page as a bitmap first, where chrome is sending proper text/vector objects to the printer.
Here's the full photo of the firefox print:
https://drive.google.com/file/d/1vZbKATS-auakLfFwY_6qkHo9hqIohK_D/view?usp=sharing
Here's the full photo of the chrome print:
https://drive.google.com/file/d/1TbmdWTKdGyFEXV56gRrlV6FMeab5TQvZ/view?usp=sharing
Updated•4 years ago
|
Comment 10•4 years ago
|
||
There's some work improving the printing backend, hopefully once that's addressed we can fix this.
Comment 11•4 years ago
|
||
(In reply to Brendan Dahl [:bdahl] from comment #10)
There's some work improving the printing backend, hopefully once that's addressed we can fix this.
awesome news! Thanks for getting back to me -
#844090 is another longstanding printing bug affecting us - if it's being looked at as part of this process as well, I'm sure there are a lot of people watching that bug that would appreciate a similar update :)
Comment hidden (metoo) |
Comment hidden (metoo) |
Comment 14•4 years ago
|
||
I've been having the same problem for a LONG time.
Where it gets particularly nasty is trying to print shipping labels to a thermal printer. Most websites output the label to PDF, but printing directly from FF results in unreadable return addresses. Printing directly from any other application is fine.
It is exceptionally disappointing to be still running into this bug...
Comment 15•3 years ago
|
||
I got hit with same problem, currently using firefox-89.0.2-2.fc34.x86_64 (Fedora Linux) - while opening the document in "evince" and print with expected resolution, the Firefox internal PDF viewer and way of printing results in somehow ugly printout, looks like same resolution as on screen.
And reading that source
https://www.gyrocode.com/articles/how-to-increase-print-quality-of-pdf-file-with-pdf-js-viewer/ assume the printout is 150 dpi (if ever)
Is this intended and will this stay or is there any secret toggle that Firefox will use for printout of PDF e.g. 600 dpi like "evince" does?
Like written in posting above, printing of shipping labels is dangerous, resolution potentially too bad for scanners.
Current "about:config":
pdfjs.renderer = canvas
found an interesting article btw regarding the support level of pds.js: https://www.pdftron.com/blog/pdf-js/guide-to-pdf-js-rendering/
In addition, the time of printing via Firefox -> internal print dialog or system print dialog is much longer than opening the document in "evince" and print from there (using same printer) - for unknown reason so far.
Comment 16•3 years ago
|
||
I'm currently experiencing this issue as well on a toner black-white brother printer (HL-L2370DW). Increasing the print quality from the print menu or the printer resolution does not fix the issue. Only downloading the file and printing from another program solves this. Really distracting reading from blurry text with a small font. Please fix this!
Updated•3 years ago
|
Updated•3 years ago
|
Comment 23•3 years ago
|
||
I have just noticed this with firefox-96.0.3-1.fc35.x86_64. Downloading the document, opening it with evince-41.3-1.fc35.x86_64 and printing it produced much higher quality. I unfortunately cannot share pictures as the document in question is confidential.
Updated•3 years ago
|
Comment 24•3 years ago
|
||
Marco or Brendan, can we get this thing bumped up to P2?
This is more than just "nice to have".
This bug has been negatively impacting a core piece of functionality, printing from PDF, for over six years. I understand it may not matter for "normal" documents, but it makes printing shipping labels extremely difficult or unreliable. More an more folks are shipping on their own and it is not reasonable to consider this an edge case.
I suspect most people don't even realize it's happening because at first glance it "looks" okay but it's not immediately clear that the barcode readability is severely degraded. There's likely a good quantity of tracking scan failures due to this.
Comment 25•3 years ago
|
||
I would highlight that printing shipping labels to thermal printers is one of the few reasons I have to have a third-party PDF reader installed, which often presents a security risk.
This is an issue beyond just convenience. No other browser or platform has this problem.
Comment 26•3 years ago
|
||
You might notice some recent activity in this bug and the recent bump of the severity. It isn't an easy fix, but we are planning to work on it soon.
Comment 27•3 years ago
|
||
Another point to consider is small text. I noticed this because on the document I printed small text was no longer legible.
Comment hidden (advocacy) |
Comment 29•3 years ago
|
||
This is not a forum but a bug tracker, please stop commenting with non-constructive criticism.
Comment 31•2 years ago
|
||
I can reproduce the rasterization happening when printing http://support.sas.com/resources/papers/proceedings12/332-2012.pdf with "Microsoft Print to PDF". I suspect that there's something specific about this PDF that's causing rasterization because https://bugzilla.mozilla.org/attachment.cgi?id=9279413 prints without rasterization.
Comment 32•2 years ago
|
||
Running mutool trace
on http://support.sas.com/resources/papers/proceedings12/332-2012.pdf, one thing that immediately stands out is that all of the content is wrapped in a <group bbox="0 0 612 792" isolated="1" knockout="0" blendmode="Normal" alpha="1">
. It seems like this could be the cause of the rasterization.
Comment 33•2 years ago
|
||
I checked some more things. http://support.sas.com/resources/papers/proceedings12/332-2012.pdf rasterizes completely with "Microsoft Print to PDF", only the green areas with "Save to PDF" and no rasterization with "Microsoft Print to PDF" in Chrome
Updated•2 years ago
|
Comment 34•2 years ago
|
||
Please see the following example. It is not possible to print German e-stamps with Firefox. Example is generated using "Print to PDF" function, looks the same on paper (to my surprise at the post office...)
Interestingly enough, they look the same in Firefox, but I think you will have no problem spotting the difference in any other PDF viewer (or printed)
screenshot
Hope this helps.
Comment 35•2 years ago
|
||
(In reply to dariush from comment #34)
Please see the following example. It is not possible to print German e-stamps with Firefox. Example is generated using "Print to PDF" function, looks the same on paper (to my surprise at the post office...)
Interestingly enough, they look the same in Firefox, but I think you will have no problem spotting the difference in any other PDF viewer (or printed)
screenshotHope this helps.
Is this the same case as bug 1774615?
Comment 36•2 years ago
|
||
Is this the same case as bug 1774615?
I don't think so, I'd say it's a dup of 1779202.
:dariush, are you printing on Mac ? if yes what is the Firefox version ? if it's lower than 105, could you try with either 105 or 106 to see if you can reproduce the issue ?
Comment 37•2 years ago
|
||
(In reply to Calixte Denizet (:calixte) from comment #36)
Is this the same case as bug 1774615?
I don't think so, I'd say it's a dup of 1779202.
:dariush, are you printing on Mac ? if yes what is the Firefox version ? if it's lower than 105, could you try with either 105 or 106 to see if you can reproduce the issue ?
Sorry for the late response.
I'm now on 106 and the issue seems mostly fixed. The PDF is still low-quality but it's now slightly blurred instead of completely broken, which is fine for my use-case (printing e-stamps). Please see the screenshot for more information, bottom is Firefox print-to-pdf.
Comment 38•2 years ago
|
||
I believe this can be closed now - I've compared the print output from Chrome and Firefox 110 here:
https://drive.google.com/file/d/14eHKub0yw27HtOAFC_cFy5c_AulvXe96/view?usp=sharing
Compared to how it looked 3 years ago:
https://drive.google.com/file/d/1WPDSX9fnphc8d-6Ju4rDps0NGXXP6qI1/view?usp=sharing
This quality is perfectly adequate for printing barcodes etc, and the differences between the two are not enough to keep this bug open imo
Thanks for all the work mozilla/firefox team, very much appreciated :)
Comment 39•2 years ago
|
||
(In reply to Bernard Gray from comment #38)
I believe this can be closed now - I've compared the print output from Chrome and Firefox 110 here:
This quality is perfectly adequate for printing barcodes etc, and the differences between the two are not enough to keep this bug open imo
Thanks for all the work mozilla/firefox team, very much appreciated :)
Can confirm, since some releases it has improved a lot.
Reporter | ||
Comment 40•2 years ago
|
||
I attempted to check with the original document I reported, but seem to have run into another problem: print from the FF preview is not working for me. I assume that's an unrelated problem (getting to the printer is a bit exotic: it's being forwarded from my home system to the server via remmina)--printing from other programs (specifically Foxit PDF Editor and notepad) works fine.
-->Could anybody else try printing http://support.sas.com/resources/papers/proceedings12/332-2012.pdf with current FF and see how it looks?
Comment 41•2 years ago
|
||
(In reply to Ross Boylan from comment #40)
-->Could anybody else try printing http://support.sas.com/resources/papers/proceedings12/332-2012.pdf with current FF and see how it looks?
Here you go:
Firefox 100: https://drive.google.com/file/d/1Z2hdYLOSp1tmtd-zF0V5vmt8JV4nYQs4/view?usp=sharing
Firefox 110: https://drive.google.com/file/d/1W-8x0qWCpTJZoCn32gWOFLNwTtgAeevH/view?usp=share_link
Chrome: https://drive.google.com/file/d/1tBejxJs2jJvxQTOkxhemXJeDChCIr1yL/view?usp=sharing
Still quite a bit of difference between the font weight used in chrome and firefox, but the quality of font rendering (kerning, and sharpness) is significantly improved
Reporter | ||
Comment 42•2 years ago
|
||
Thank you. They all look a bit marginal to me, but that might just be the resolution of the photo.
I was able to print from FF 111.0.1 running on a local MacOS, and the document looked good that way--really about as good as the printout from the Preview application on the same machine (FF was better in that, as in my original report, the non-FF route clipped part of the title banner on p. 1, while the FF version did not). Since the original problem was on MS-Windows, this isn't quite proof, but it's a good sign.
As a reminder, my original concern was with reading ease for humans, not for bar code scanners.
It might be meaningful that the printout was much slower from FF than from Preview; in particular I wonder if FF is still rasterizing, but doing so at a higher resolution (presumably that of the printer).
At any rate, thanks to the developers for whacking this problem.
Comment 43•1 year ago
|
||
Great to hear this is much better than before!
We'll keep this bug open to completely avoid the rasterization. Jonathan, would it be possible to have telemetry to know how often we are rasterizing when printing a PDF? I'd like to figure out if we still need to consider this as S2.
Comment 44•1 year ago
|
||
(In reply to Marco Castelluccio [:marco] from comment #43)
would it be possible to have telemetry to know how often we are rasterizing when printing a PDF?
My intuition is that it'd be tricky to assess.... there'll be various places within cairo where the win32 printing surface may decide an operation is "unsupported" and has to be handled by falling back to internal rasterization, but I'm not sure how we'd usefully deal with the granularity of this. It might be just a small, unimportant element that's being rasterized, or might be an entire page. Would we only record if the area being rasterized is larger than... some arbitrary size?
(In reply to Bernard Gray from comment #41)
Firefox 110: https://drive.google.com/file/d/1W-8x0qWCpTJZoCn32gWOFLNwTtgAeevH/view?usp=share_link
Chrome: https://drive.google.com/file/d/1tBejxJs2jJvxQTOkxhemXJeDChCIr1yL/view?usp=sharing
Still quite a bit of difference between the font weight used in chrome and firefox, but the quality of font rendering (kerning, and sharpness) is significantly improved
There's another interesting thing here, actually. It's not just about font rendering (darkness/weight, sharpness, etc); there is also some kind of font substitution happening, such that the Chrome and Firefox printouts show a different font being used for some of the text.
It's perhaps easiest to see this on the headings like ABSTRACT and INTRODUCTION, where the original PDF looks like it's using Arial, and this is also what I think Chrome's printout shows, but the photo of Firefox output looks like it is instead using Helvetica. Compare for example the shape of the right leg of "R", which is distinctively different between the two fonts. Another visible difference is at the tips of the "C", where Helvetica has them cut horizonally, while Arial's tips slant distinctly outwards. Oh, and compare the "G" in IMPROVING PERFORMANCE.
So I wonder where in the process this substitution is happening, and why. It seems to apply to the bold headings, but not the body text. Weird.
Reporter | ||
Comment 45•2 months ago
|
||
I noticed a couple things trying my original test document with FF 130.0, compared to the output from a regular PDF viewer (FoxIt).
All comparisons are for p. 1. There is no change in the overall conclusion that FF output is much improved from that of the original report, but still not quite as good as printout from dedicated pdf tools. The latter produce characters that are sharp and clear, while FF produces characters that are slightly fuzzy and appear to have somewhat variable black levels. And FF cuts off the top of the page.
-
The printout from FF was larger, both vertically and horizontally. If the ABSTRACT heading is aligned, the last heading, MAKE CHANGES TO THE RUNNING ENVIRONMENT, from FF lines up roughly with the text line below that heading (starting "The following changes") from the regular output. So FF has gained almost 2 lines (the text line and the vertical gap after the heading). This is the reverse of the situation in my original report, in which FF output was vertically compressed relative to the regular output. The page number is physically lower on the page for FF.
-
The green heading at the top is cutoff for FF and only a small bit of the text in it is visible. The regular output shows the complete green banner and whitespace above it, but the very bottom of the characters in the green banner is cut off. The cutoff is small; for example in the small "o" the lower horizontal section (imagine a vertical centerline through the middle and consider the part with ink on the bottom) is missing perhaps the bottom 1/3. When viewed on the screen it looks fine.
Test was on Windows Server 2019 Standard, Version 1809 printing to Xerox AltaLink C8005 with drivers provided by Xerox. The two conditions were
"Firefox": Go to http://support.sas.com/resources/papers/proceedings12/332-2012.pdf and print from FF. This used Xerox's default Windows driver.
"regular": Download the same document with FF and open in Foxit PDF Editor Pro 13.1.3.22478. This test used Xerox's Postscript Windows driver, and went to a different physical printer, same model.
Unlike the previous report (https://bugzilla.mozilla.org/show_bug.cgi?id=1269023#c44), I did not notice any difference in the fonts. The tips of the C slant outwards, so I guess that's Arial.
Description
•