Open Bug 1699449 Opened 5 years ago Updated 4 years ago

PDF created by PDF printer too big

Categories

(Core :: Printing: Output, defect)

Firefox 88
defect

Tracking

()

Tracking Status
firefox86 --- affected
firefox87 --- affected
firefox88 --- affected

People

(Reporter: pmenzel+bugzilla.mozilla.org, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0

Steps to reproduce:

Using Nightly 88.0a1 on Debian sid/unstable, visit https://www.gew.de/aktuelles/detailseite/neuigkeiten/landesarbeitsgericht-setzt-befristungsmissbrauch-grenzen/ and print it to PDF.

Actual results:

The PDF file is 1.2 MB in size, which is too big.

$ pdfinfo test.pdf
Creator:        cairo 1.9.5 (http://cairographics.org)
Producer:       cairo 1.9.5 (http://cairographics.org)
Tagged:         no
UserProperties: no
Suspects:       no
Form:           none
JavaScript:     no
Pages:          3
Encrypted:      no
Page size:      596 x 842 pts (A4)
Page rot:       0
File size:      1187489 bytes
Optimized:      no
PDF version:    1.5
$ pdfimages -list test.pdf
page   num  type   width height color comp bpc  enc interp  object ID x-ppi y-ppi size ratio
--------------------------------------------------------------------------------------------

Firefox 86.0.1-1 from Debian sid/unstable even creates a 1.5 MB file.

$ pdfinfo test-firefox-86.0.1-debian.pdf
Creator:        cairo 1.9.5 (http://cairographics.org)
Producer:       cairo 1.9.5 (http://cairographics.org)
Tagged:         no
UserProperties: no
Suspects:       no
Form:           none
JavaScript:     no
Pages:          3
Encrypted:      no
Page size:      596 x 842 pts (A4)
Page rot:       0
File size:      1477359 bytes
Optimized:      no
PDF version:    1.5

Strangely, the shipped Cairo of Mozilla Firefox seems to be used instead of the system Cairo package at version 1.16.0-5.

Expected results:

The resulting PDF should be much smaller. Brave creates a 541 kB PDF file.

$ pdfinfo test-brave.pdf
Creator:        Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36
Producer:       Skia/PDF m89
CreationDate:   Thu Mar 18 08:50:23 2021 CET
ModDate:        Thu Mar 18 08:50:23 2021 CET
Tagged:         yes
UserProperties: no
Suspects:       no
Form:           none
JavaScript:     no
Pages:          3
Encrypted:      no
Page size:      594.96 x 841.92 pts (A4)
Page rot:       0
File size:      553512 bytes
Optimized:      no
PDF version:    1.4

The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → PDF Viewer
Component: PDF Viewer → Untriaged

Reproduced on the latest versions of Firefox Nightly 88.0a1 (2021-03-19), beta 87.0 and release 86.0.1 on Ubuntu 20.04.

Setting up flags and a component in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.

Assigning it a severity of S4.

Not a recent regression since it can be reproduced back to Firefox 71.0.

Severity: -- → S4
Status: UNCONFIRMED → NEW
Component: Untriaged → Printing: Output
Ever confirmed: true
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.