Comment 80 for bug 179988

Revision history for this message
Adrian Johnson (ajohnson-redneon) wrote :

I am attaching the test code that I used when I wrote the cairo_win32_printing_surface. Someone may be able to use this to try out Inkscape with the cairo win32 printing surface and work out whether the problem is in Inkscape or gtkprint.

The test code creates a DC for a printer. There is a #define PRINT_DLG that if defined will cause a print dialog to pop up. Otherwise it will print to the file cairo.ps using the default printer. Obviously you will want to have a PostScript printer driver installed and set as the default for this to work. I used the HP LaserJet 4550 driver for testing even though I don't have this printer as it is a PostScript Level 3 color printer. I viewed the output using GSView and ghostscript.

I would suggest finding where Inkscape gets the cairo_t * pointer from gtkprint and instead supply the cairo_t * created in the test code.