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 509788 - GTK+ should use CUPS to set Postscript level of PS output
GTK+ should use CUPS to set Postscript level of PS output
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Printing
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-01-15 23:42 UTC by Behdad Esfahbod
Modified: 2008-05-28 01:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PS level restriction patch. (1.12 KB, patch)
2008-03-26 16:03 UTC, Marek Kašík
committed Details | Review

Description Behdad Esfahbod 2008-01-15 23:42:31 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
Comment 1 Marek Kašík 2008-03-26 16:03:12 UTC
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
Comment 2 Matthias Clasen 2008-04-16 14:19:59 UTC
The patch looks fine to me; we already require cairo 1.5.2 in trunk.
Comment 3 Matthias Clasen 2008-05-28 01:43:57 UTC
        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.