Comment 87 for bug 179988

Revision history for this message
Ulferikson (ulferikson) wrote :

> At first I thought there were no more bitmaps but when
> I zoomed right in I could see them there,

Did you define WIN_PRINT_TEST to use Adrian's test code? (look in print.cpp) You will get two printer dialogs. The second one matters. For me this produces clean vectors.

> So now it seems the remaining issues are;
> * Transparency - fix - GTK patch?
> * bitmaps vs. vector in prints -
> * blurs not appearing - fix - ?

If there is no support for blur or transparency in the output format you need to mimic it someway. I don't know what Inkscape turns into raster and cairo does.. Search for "ctx->setContextTarget" and try add some lines like these right before:
    //ctx->setPSLevel(CAIRO_PS_LEVEL_3);
    ctx->setTextToPath(false);
    ctx->setFilterToBitmap(true);
    ctx->setBitmapResolution(72);

> I am puzzled why saving to ps via Cairo produces clean
> vectors with no white blocks.

With save as ps you ask cairo to produce the postscript. With print to a postscript printer I think cairo produces a windows meta file and the printer driver will translate that to a postscript. The white blocks have been said to come because gtk asks cairo for the wrong sort of meta file. at least that is my understanding