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 557112 - implementation of full Gtk+ printing stack
implementation of full Gtk+ printing stack
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: printing
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on: 339318 549859
Blocks:
 
 
Reported: 2008-10-20 16:20 UTC by Marek Kašík
Modified: 2009-05-17 14:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
implementation of Gtk+ printing stack for pdf backend and for tiff backend (11.34 KB, patch)
2008-10-20 16:25 UTC, Marek Kašík
reviewed Details | Review

Description Marek Kašík 2008-10-20 16:20:22 UTC
Evince doesn't use the whole Gtk+ printing stack. It tries to prepare document for printing itself. This causes some bugs (397225, 455759, 460267, 542538, 550125), which is not easy to handle (combination of several print settings produce incorrect print in this case).

  Mark
Comment 1 Marek Kašík 2008-10-20 16:25:06 UTC
Created attachment 120940 [details] [review]
implementation of Gtk+ printing stack for pdf backend and for tiff backend

This is an implementation of the whole Gtk+ printing stack using GtkPrintOperation in Evince. There are handled pdf and tiff backends. The other backends are not supported in this patch because of unsupported vector graphic rendering to cairo_t by used libraries.

  Mark
Comment 2 Carlos Garcia Campos 2008-10-21 07:03:42 UTC
Hi Marek, 

thank you very much for the patch, I was also looking at how to implement printing with gtkprintoperation since you commented it on mailing list. The main problem is that currently gtkprintoperation uses the main loop for printing which means blocking the gui while rendering the page (See bug #339318). There are documents that take too long to render and we don't want to block the UI for such a long time. So first of all we need to fix bug #339318. 

Thanks. 
Comment 3 Carlos Garcia Campos 2008-12-19 18:19:16 UTC
bug #339318 is now fixed (thanks Marek), I'm already working on the evince side. 
Comment 4 Carlos Garcia Campos 2009-01-01 18:05:32 UTC
I've just realized there is still another issue. GTK+ doesn't support printing multiple pages per sheet when printing to a file (see bug #566218). That would be a regression in evince :-(
Comment 5 Nicolò Chieffo 2009-02-18 14:02:26 UTC
bug #549859 is the original bug for printing to file
Comment 6 Carlos Garcia Campos 2009-05-17 14:43:13 UTC
Fixed in git master. It requires gtk+ 2.17.1.