After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 518052 - Broken printing of graphics to inkjet on Windows.
Broken printing of graphics to inkjet on Windows.
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Printing
2.12.x
Other Windows
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on: 488833
Blocks: 444942
 
 
Reported: 2008-02-22 12:09 UTC by Bastiaan
Modified: 2008-04-01 21:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (3.95 KB, text/plain)
2008-02-22 12:14 UTC, Bastiaan
Details
PDF created with trunk (2.32 KB, application/pdf)
2008-04-01 21:05 UTC, Cody Russell
Details

Description Bastiaan 2008-02-22 12:09:16 UTC
Please describe the problem:
Cairo strokes are printed as a solid black box on a Canon inkjet printer (tested on Pixma iP5200R) on XP.

Steps to reproduce:
1.  Compile the attached program.
2.  Run it, click the print button.
3a. Choose an inkjet printer and print; or
3b. Choose PDFCreator printer installed from http://www.pdfforge.org/


Actual results:
You get a page with a solid black box

Expected results:
Get a page with a diagonal line, which is what you get when printing on a LaserJet.

Does this happen every time?
Yes.

Other information:
If you do not have an inkjet at hand, the problem can be reproduced by printing to PDFCreator from www.pdfforge.org.
Comment 1 Bastiaan 2008-02-22 12:14:44 UTC
Created attachment 105753 [details]
testcase

This illustrates the problem.
Comment 2 Bastiaan 2008-02-22 15:04:45 UTC
See also Bug 424622.
Comment 3 Bastiaan 2008-02-22 15:33:05 UTC
Maybe this will get better with Cairo 1.6 and its cairo_win32_printing_surface, as announced in Bug 488833.
Comment 4 Tor Lillqvist 2008-02-22 20:58:12 UTC
I can indeed reproduce the problem exactly. (HP LaserJet 1010 vs. Canon iP5200 inkjet.)
Comment 5 Adrian Johnson 2008-02-28 10:52:05 UTC
The cairo_win32_surface does not work for printing. Use cairo_win32_printing_surface instead.

The difference is win32_surface requires access to the destination DC bitmap for compositing antialiased fills, strokes, and translucent colors. Most printer drivers do not support a destination DC that can be read and even if it does you would end up sending raster images to the printer.

The win32_printing_surface uses the GDI fill and stroke functions as antialiasing is not required at printer resolutions. Fallback images are used to support transparency.
Comment 6 Cody Russell 2008-04-01 21:05:38 UTC
Created attachment 108438 [details]
PDF created with trunk

I committed support for cairo_win32_printing_surface in bug #488833 and now the test program attached to this bug appears to work correctly.  Here is the output I get from PDFCreator.  I'm closing this bug as FIXED.