Bug 26019 - evince creates ps that my printer can't print
Summary: evince creates ps that my printer can't print
Status: RESOLVED MOVED
Alias: None
Product: cairo
Classification: Unclassified
Component: postscript backend (show other bugs)
Version: 1.8.8
Hardware: Other All
: medium normal
Assignee: Adrian Johnson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-12 21:02 UTC by David Schleef
Modified: 2018-08-25 13:48 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
generated postscript file (502.78 KB, application/postscript)
2010-01-12 21:02 UTC, David Schleef
Details

Description David Schleef 2010-01-12 21:02:17 UTC
Created attachment 32605 [details]
generated postscript file

My printer (HP LaserJet 3030) spins forever attempting to print page 4 of the linked pdf.  Attaching the ps file grabbed from cups while attempting to print only page 4.

http://www.cns.nyu.edu/pub/eero/wang03-reprint.pdf
Comment 1 David Schleef 2010-01-12 21:18:21 UTC
Happens with cairo/pixman from git, too.

This bug is easy to reproduce with lots of PDF files, usually ones with images.  I can print the same pdf from OS/X with no problems.
Comment 2 Adrian Johnson 2010-01-12 23:28:41 UTC
The attachment is a PDF file, probably because CUPS has switched to using PDF as the printing format. Your version of evince may be printing as PDF when printing to a CUPS printer. If it is printing as PS, CUPS will convert it to PDF before passing through its internal filters. It is only at the end of the filter chain that it is converted to PS or whatever format is required for printing.

You will need to do some further debugging to narrow down the cause. There are too many applications involved here (evince, poppler, cairo, CUPS) to be able to say it is a cairo bug.

Some things you can try:

- print to PDF from evince then print the file with lpr
- print to PS from evince then print with lpr and lpr -o raw (bypasses CUPS filtering)
- print from other applications to PS then print the PS with lpr -o raw. If it works attach the PS output here.

Comment 3 David Schleef 2010-01-13 00:18:17 UTC
Ugh, thanks for the explanation.  I filed it on cairo because I had discussed it with cworth in person a while back, and he said "sounds like a cairo bug!"


evince print to file ps, lpr -o raw output.ps: works, although has a separate rendering bug

lpr original_file.pdf: works

evince print to file PDF, lpr output.pdf: printer stalls on page 4.

Comment 4 Adrian Johnson 2010-01-13 00:47:39 UTC
> evince print to file ps, lpr -o raw output.ps: works, although has a separate
> rendering bug

The cairo generated PS works but there is a bug in either poppler or cairo. Does the PS file render correctly with evince or gv?

> lpr original_file.pdf: works

Using poppler to generate the PS from the original PDF works.

> evince print to file PDF, lpr output.pdf: printer stalls on page 4.

Using poppler to generate PS from a poppler/cairo generated PDF does not work. If this PDF renders fine with evince/gv/acroread it points to a problem in poppler. In this case I can see that poppler is using a very different method of embedding images in PS compared with pdftops original.pdf. I have know idea why it is doing this. The first step to debugging it would be to find/create a simpler test case. If you can use something like eog/inkscape/openoffice to create a PDF containing a single image that triggers the bug it would a lot be easier to work with.
Comment 5 David Schleef 2010-01-13 01:22:53 UTC
(In reply to comment #4)
> The cairo generated PS works but there is a bug in either poppler or cairo.
> Does the PS file render correctly with evince or gv?

No.

> > lpr original_file.pdf: works
> 
> Using poppler to generate the PS from the original PDF works.

This also exhibits the rendering problem above.

> > evince print to file PDF, lpr output.pdf: printer stalls on page 4.
> 
> Using poppler to generate PS from a poppler/cairo generated PDF does not work.
> If this PDF renders fine with evince/gv/acroread it points to a problem in
> poppler. In this case I can see that poppler is using a very different method
> of embedding images in PS compared with pdftops original.pdf. I have know idea
> why it is doing this. The first step to debugging it would be to find/create a
> simpler test case. If you can use something like eog/inkscape/openoffice to
> create a PDF containing a single image that triggers the bug it would a lot be
> easier to work with.

Will do this tomorrow.
Comment 6 GitLab Migration User 2018-08-25 13:48:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/203.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.