Why does firefox PDF print lower quality than Acrobat PDF?

Status
Not open for further replies.

poochyena

Ars Praetorian
1,785
Subscriptor++
Opening a pdf through firefox and printing it results in lower print quality compared to opening up Acrobat and printing. Why is this? I'm not so much asking for technical support, I just want to understand why it happens. Shouldn't it just be sending the file to my thermal printer? Its the same file no matter which program I use to open it.

Image below. Take close notice of the small text (and yea, even with acrobat, the text isn't super clear). FF on top, Acrobat on bottom. edited out personal details.
wXPEIFQ.jpeg
 

LordDaMan

Ars Legatus Legionis
10,090
I would guess that Firefox's PDF render must render the pdf at a lower quality to begin with and it simply dumps that render to the printer.

Also, some text being crap on both suggest that maybe the PDF is presenting everything as bitmap and not using fonts to render the text. So instead of the nice clean edges of a vector font, it's badly resized bitmaps.
 
Last edited:
  • Like
Reactions: Lord Evermore

Lord Evermore

Ars Scholae Palatinae
1,491
Subscriptor++
Applications actually have to render a PDF, and then they send their own rendering to the printer. They aren't just sending "the file" and letting the printer handle it. (That's true for basically any document and application.) One would think that if they look the same on-screen they should look pretty much the same in print, but that's not necessarily always the case. Acrobat also has a lot of options and controls for optimizing output, so even the default settings may change things. (The margins for example seem to be a little smaller on the Acrobat version, which means Firefox was shrinking the page a little more to fit.)

I just tested a print of my bank statement from the two. Firefox made a lot of the text "heavier", not quite bold but a little darker and thicker. But non-text like borders, shaded boxes and logos look the same. On the other hand, when I printed my insulin savings card sheet, everything including logos and shaded areas came out darker with Firefox.

As @LordDaMan pointed out, different content may be rendered using fonts or bitmaps which may affect it. I'd bet a barcoded label like that is just a bitmap, and Firefox just doesn't do well resizing it. You might make it look better if you adjust the print options like "fit to page" and the margins, or use the system print dialog instead of Firefox's maybe. The label file may be generated for a particular label size, which is why even the Acrobat version looks a little bad because it's having to resize it. See how it looks printing to a normal sheet of paper.
 
Last edited:
  • Like
Reactions: poochyena

Lord Evermore

Ars Scholae Palatinae
1,491
Subscriptor++
You can tell in that one as well that Firefox is shrinking the output more, using much larger margins, and since it's a label with a barcode, it's again something that is intended for a specific size and probably being rendered with bitmaps. Adjusting the print settings or using the system dialog so that it doesn't shrink it as much would probably help a lot, but it may just be that Mozilla has done a poor job with the PDF printing feature.
 

Lord Evermore

Ars Scholae Palatinae
1,491
Subscriptor++
I doubt it's a resolution issue, without some visual comparisons between those two settings. Label printers don't print anywhere near that high; they're usually like 203 (weird-ass Zebra number) or 300dpi, maybe 600dpi. "Blurry" is not the way I'd describe the printing in the original post or other complaints I've found.

I don't know what version of Firefox and what OS that KORONA page was using, but it's not the current Windows version. There are no options like that available in Firefox.
 
Last edited:
  • Like
Reactions: poochyena

LordDaMan

Ars Legatus Legionis
10,090

LordDaMan

Ars Legatus Legionis
10,090
I doubt it's a resolution issue, without some visual comparisons between those two settings. Label printers don't print anywhere near that high; they're usually like 203 (weird-ass Zebra number) or 300dpi, maybe 600dpi. "Blurry" is not the way I'd describe the printing in the original post or other complaints I've found.

I don't know what version of Firefox and what OS that KORONA page was using, but it's not the current Windows version. There are no options like that available in Firefox.
It's some form of linux (or some other unix-like using some window manager that uses GTK themes) running a pretty common theme that the name escapes me at the moment.

I also tried that with current Firefox ESR on sparky linux (i have a VM to mess around with it) and it spits out the same dialog as windows firefox does. If you use the system print dialog it puts out a similar dialog but there's no resolution options. Don't know if it no longer exists, that's some config flag to set to show it, or it's dependent on pdf.
 

Paladin

Ars Legatus Legionis
32,552
Subscriptor
I guess they must have removed it at some point. I can't find that kind of setting either. If it is really a problem, you can tell Firefox to open PDFs in an external application instead (Adobe Reader, Foxit PDF or Sumatra PDF etc.) and see if that works better for you.

It is also possible to install the Adobe PDF extension into Firefox if you want, you have to have Adobe Acrobat or maybe Adobe Reader installed to get it.

Basically this:

 

Lord Evermore

Ars Scholae Palatinae
1,491
Subscriptor++
If you use the system print dialog it puts out a similar dialog but there's no resolution options.
Resolution options in the system dialog are dependent on the printer you're using, and the driver, so it will be in a different place for every printer brand/model (many brands have 3 or more drivers for every model and you have to choose one, like PCL5, PCL6, PostScript, XPS. UFR, UFR Generic, etc.). I have a Canon laser which is 600x600, but with "1200 x 1200 dpi equivalent" as an option. In the system dialog I had to select the printer then go to Preferences, the Quality tab, then Advanced Settings. But if Firefox can't properly render the print job without jacking up the resolution which may not even be available, then it's still a problem with Firefox, not just a setting.
 
  • Like
Reactions: continuum

Lord Evermore

Ars Scholae Palatinae
1,491
Subscriptor++
yea, there aren't any resolution options
The Rollo printer seems to only have one resolution, 203dpi. I wonder how that became a standard minimum resolution for thermal printers. It's such an odd number, especially given that the next steps are even numbers that every other printer uses like 300, 600 or 1200. The paper size options may look different depending on OS location settings; maybe it shows up in mm if you're set up in other countries where the paper rolls are actually sold that way, but in inches for America, and the manufacturer just didn't bother to write the driver to match those other settings just for us weirdos.

It would seem impossible to me for any generic application, like a browser or word processor, to have its own settings for things like resolution that are independent of the device drivers. (Label printing software for a specific brand being a special case.) For those that have their own dialog, the application's print function I assume just sends the job to the driver and the driver uses whatever default settings have been configured via the OS/system dialog previously, with some options like paper size and margins being universal. I don't know how Firefox could have ever had dialogs like shown in that KORONA POS animation unless at some point it did just display the system dialog immediately, and integrated within the browser window so it looked like part of Firefox, rather than having its own separate print dialog as it does now.
 

Lord Evermore

Ars Scholae Palatinae
1,491
Subscriptor++
203dpi is 8 dots per mm. Well, 203.2 is, but close enough.
Okay, but then why do they switch to round numbers like 300, 600, 1200, which are much farther off after conversion BUT they match regular printer resolutions in imperial? Why not 305, 610, 1219? Was the original thermal printer hardware made by someone that used metric, but in the US they rounded the advertised resolution to inches, but then Americans made all the advances after that so the hardware was made based on imperial?

I was going to ask whether users in metric countries now have resolutions that are rounded from the imperial, but then I realized that question applies to other kinds of printers as well and went searching. I can't believe printers in other countries are specified with resolutions using dpi.
 
Status
Not open for further replies.