www.cendio.com

Bug 5824

Summary: pdftocairo rasterises some vector documents on Windows
Product: ThinLinc Reporter: Pierre Ossman <ossman@cendio.se>
Component: PrintingAssignee: Henrik Andersson <hean01@cendio.se>
Status: NEW QA Contact: Bugzilla mail exporter <bugzilla-qa@cendio.se>
Severity: Normal    
Priority: P2 CC: derfian@cendio.se
Version: pre-1.0Keywords: upstream
Target Milestone: LowPrio   
Hardware: PC   
OS: Unknown   
Acceptance Criteria:
Attachments: lemon jelly sample
sunny farm invoice sample
Not fully rasterized
90% rasterized

Description From cendio 2016-03-22 13:35:08
There are some documents (or part of documents) that Poppler's pdftocairo
rasterises on Windows instead of keeping them in a vector format. This causes a
reduction in quality, colour mismatches and generally makes the print job
larger.
------- Comment #1 From cendio 2016-03-22 13:36:10 -------
Created an attachment (id=677) [details]
lemon jelly sample

First sample, taken from here:

https://wiki.gnome.org/Apps/Evince/Testing
http://image.guardian.co.uk/sys-files/Guardian/documents/2004/11/11/lemon_jelly.pdf
------- Comment #2 From cendio 2016-03-22 13:37:06 -------
Created an attachment (id=678) [details]
sunny farm invoice sample

Second sample, from here:

http://www.princexml.com/samples/
http://www.princexml.com/samples/invoice/invoicesample.pdf
------- Comment #3 From cendio 2016-03-22 13:37:50 -------
Note that both samples are rendered properly as vector images when using
SumatraPDF, as well as pdftocairo's other backends and with pdftops.
------- Comment #4 From cendio 2016-03-22 13:44:14 -------
Reported upstream:

https://bugs.freedesktop.org/show_bug.cgi?id=94659
------- Comment #5 From cendio 2016-06-03 07:39:52 -------
More testing shows that the lemon jelly document not always are rasterized.
Seems to be a dependent of which print driver is used.

Direct printing using "HP Laserjet 500 color MFP M570dn UPD PS" driver will
make pdftocairo to only rasterize the fifth graphical symbol on first row. See
attachment "minimal rasterized".

Direct printing using "HP Laserjet 500 color MFP M570 PCL6" driver, the results
is 90% rasterized image. See attachment "90% rasterized". You can see in the
scan the bounding box for the rasterization is almost the full graphics. Text
around is vectorized.
------- Comment #6 From cendio 2016-06-03 07:40:25 -------
Created an attachment (id=711) [details]
Not fully rasterized
------- Comment #7 From cendio 2016-06-03 07:41:03 -------
Created an attachment (id=712) [details]
90% rasterized
------- Comment #8 From cendio 2016-06-03 07:42:37 -------
(In reply to comment #5)
> Direct printing using "HP Laserjet 500 color MFP M570dn UPD PS" driver will
> make pdftocairo to only rasterize the fifth graphical symbol on first row. See
> attachment "minimal rasterized".
> 

As you can see here, the printer get confused of gradients and masking and
renders those parts wrong. Very broken results.