You are not logged in.

#1 2014-01-17 02:01:00

LeftyAce
Member
Registered: 2012-08-18
Posts: 162

print to pdf results in bad quality for some webpages

Hi all,

I'm having trouble using the CUPS print to file functionality. (I think it's part of CUPS...I'm running CUPS and it's an option in the print dialog). Using conkeror or firefox as my web browser some pages print just fine, others it appears that the text has been converted to exceedingly low-resolution bitmaps such that the text is illegible. I don't think I can attach example PDFs to this post, but here are two example sites:

If I print the archwiki CUPS page to PDF it looks great.

If I print the national weather service page it looks like garbage. The text has become all blocky and pixellated, basically unreadable. Often confirmation pages from websites come out illegible, which is a major concern as I am often not able to physically print things.

Any idea what could be causing this? I tried installing cups-pdf and adding the cups-pdf printer, but the output there is worse: the text looks just as bad and a whole chunk out of the middle of the page is missing.

Thanks in advance,

Lefty

Offline

#2 2014-02-08 10:42:39

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

Re: print to pdf results in bad quality for some webpages

I'm having the same problem. Actually the pages you linked both work fine, but this one instead prints very badly, here's a screenshot.

I'm wondering, maybe we miss some font?

Offline

#3 2014-02-08 14:32:31

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: print to pdf results in bad quality for some webpages

My guess is the pages that print badly use some font you don't have installed in your system and you end up with type 3 fonts in your pdf.

I suspect that for the first case ttf-ms-fonts from the aur will fix the problem, and for the cups page ttf-microsoft-consolas from the aur might fix the problem.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2014-02-08 14:43:20

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: print to pdf results in bad quality for some webpages

What does this show:

fc-match helvetica

Hopefully it doesn't match with a bitmap font wink

Also, try compiling ghostscript *with* its bundled libs (especially freetype).

Offline

#5 2014-02-08 20:33:41

LeftyAce
Member
Registered: 2012-08-18
Posts: 162

Re: print to pdf results in bad quality for some webpages

fc-match helvetica

doesn't say anything about bitmaps, thankfully.

Installing ttf-ms-fonts and ttf-ms-fonts-config from aur fixed the problem, thanks!

Offline

#6 2015-07-31 08:04:24

Herodotus
Member
Registered: 2015-06-16
Posts: 24

Re: print to pdf results in bad quality for some webpages

I had the same problem. I was experiencing mysterious font issues on about 30% of the web pages I tried to print out.

$ fc-match helvetica
helvR12-ISO8859-1.pcf.gz: "Helvetica" "Regular"

I think the 'pcf' means it is a bitmap, correct? Installing ttf-ms-fonts and fontconfig-ttf-ms-fonts fixed it. Now I have:

$ fc-match helvetica
arial.ttf: "Arial" "Normal"

I don't know how to mark a topic as "solved", which I think this one is. However, perhaps the Arch Wiki should also explain this problem somewhere where novices will see it. I can't really think of a good location though.

Last edited by Herodotus (2015-07-31 08:05:19)

Offline

#7 2015-07-31 10:03:27

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,718
Website

Re: print to pdf results in bad quality for some webpages

Herodotus, please don't bump old threads.

https://wiki.archlinux.org/index.php/Fo … bumping.22

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB