GNOME Bugzilla – Bug 509788
GTK+ should use CUPS to set Postscript level of PS output
Last modified: 2008-05-28 01:43:57 UTC
And if unavailable (or generating generic PS), should fall back to level 2 instead of the level 3 as level 3 is not supported by some printers. See: https://bugzilla.mozilla.org/show_bug.cgi?id=406376
Created attachment 108066 [details] [review] PS level restriction patch. Hi all, this patch restricts the PS level of generated cairo-surface to the PS level supported by the printer (it gets the information from cups). This sets upper limit of PS level of generated print. Cairo sets the lowest possible PS level of cairo-surface since version 1.5.6 (mostly to PS level 2). And this patch solves the problem when the required PS level is higher than the PS level supported by the printer. This patch requires Cairo 1.5.2 or higher (function cairo_ps_surface_restrict_to_level()). Regards Marek
The patch looks fine to me; we already require cairo 1.5.2 in trunk.
Bug 509788 - GTK+ should use CUPS to set Postscript level of PS output * modules/printbackends/cups/gtkprintbackendcups.c (cups_printer_create_cairo_surface): Fall back to PostScript level 2 if the printer does not support level 3. Patch by Marek Kašík.