Page 1 of 1

Printing in Chrome makes PDFs of much larger size than in Firefox

Posted: Wed Mar 06, 2019 3:15 pm
by asocialis
I can't believe this. I used Firefox until I decided to remove it and start using Chrome. Everything is better except printing (to pdf).
I used same printing settings as in Firefox, meaning no margins and headers and footers, landscape, same sizes.
PDFs look the same, meaning text is text, image is image, and sizes look same. But file sizes are so much different!
I tried using your print drivers that come with PDF-XChange, then I tried internal chrome printing to pdf, and tried Foxit PhantomPDF printing driver. Almost no difference. Even tried reducing DPI from default to minimum, and it makes pdfs with almost unreadable text (worse than firefox of course), yet it still holds larger size! For example when wikipedia article "Herbert M Shelton" is printed from Firefox it is 33,7 KB. But in Chrome it is 691 KB when printed without help of any extension, and with internal chrome printing mechanism, in that case even borders of wikipedia articles are printed, meaning page as it looks on web, which could make sense for increased size. When printed with help of Print Edit WE extension, by simply clicking on that extension and not using any additional option, it looks like normally printed in firefox, meaning without taht useless wikipedia borders, size is 611 KB. What is reason here? I know this is not only in your products, but can I analyze pdfs for what is taking so much space and why? I noticed pdfs printed from chrome are bit wider, but not so much, plus i used worse almost unreadable dpi, so i doubt that that is the only reason. How to detect all differences and figure out the cause? Yes I tried removing background colors in printing options, and I do not want black and white, because i need to see colors like i did use options in Firefox. And I tried printing using system mechanism (ctrl+shift+p) in chrome. Does not help.

Re: Printing in Chrome makes PDFs of much larger size than in Firefox  SOLVED

Posted: Wed Mar 06, 2019 3:42 pm
by Dimitar - Tracker Supp
Hello asocialis,

Could you please take a look at this KB article:

https://www.tracker-software.com/knowle ... emChromeem

I think that this explains why the file is bigger.

I hope that this helps.

Regards.

Re: Printing in Chrome makes PDFs of much larger size than in Firefox

Posted: Wed Mar 06, 2019 4:23 pm
by asocialis
Thanks, looks like you're right. Looks like I was wrong when I said that text was selectable, I was confused, it was selectable only in internal chrome "save to pdf" pdf printer option. In that case size of article is much less larger than Firefox, 169 KB. But that few additional kB is I think because page were wide a bit and had empty space around which can't be modified in internal saving as pdf, which is why I will not use it probably, because does not rely on external virtual printers, has no additional options. My text was really images or something. I will try either different browser, or some extension that makes pdfs or print them via chrome directly, but optimize/edit them later maybe. Because file size is really important for so much files. And the only advantage Chrome internal saving as pdf and printing via foxit phantompdf have are proper file name saving, meaning they save correctly files with dots in file name. At least I now know the main reason. And you should mention firefox as good alternative too, especially with combination with print edit we, in that kb article.

Now I just tested various combinations of print edit we + ctrl+p printing + ctrl+shift+p printing + different pdf save method (different virtual printer or internal save as pdf). Conclusion is that chrome's internal saving as pdf is closest to small size (around 100 kB vs around 30 kB for Firefox). All other options, meaning external printers gave me file around 1 MB and not searchable/selectable text. Also almost nothing helped for this discussion: https://bugs.chromium.org/p/chromium/is ... ?id=103602
So looks like I will also use some Firefox (flavor or portable) for printing only. The worst thing being that Firefox Quantum can't access already saved pages in mht or single html via save page we, which i planned to print to pdf via chrome later, or maybe it can (http://kb.mozillazine.org/Links_to_loca ... o_not_work), but it is not a big deal, I did not save so much pages.. While Chrome can. Even on that bug page some solutions did not work, were not right. But it's OK, I will find some alternative.

And I figured out why even Chrome's internal print to pdf has somewhat large size (3x-4x) than Firefox's. Because besides lacking few settings and making bit wider pages, it keeps all urls (links) in pdfs. That is the main reason!

Re: Printing in Chrome makes PDFs of much larger size than in Firefox

Posted: Thu Mar 07, 2019 9:36 am
by Tracker Supp-Stefan
Hello asocialis,

Glad we could help you figure out what was happening!
If you open a file in IE, and use the add-in that comes with our Standard printing drivers - then the PDF generated will also have links, and the file size should be smaller - as text will be preserved as text too!

Regards,
Stefan