Gtk Printing and evince



Hi, 

I'm porting evince from gnome-print to gtk-print, but I have some
doubts. 

In evince we have the document pages already rendered, so can I take the
pixbuf of the page and create a cairo surface from it and use it in
draw_page signal? I don't know if this is the right way to do it. 

Right now in evince we generate a ps file and use
gnome_print_job_set_file (). By using  GtkPrintUnixDialog and
GtkPrintJob instead of GtkPrintOperation, it works, I only had to use
gtk_print_job_set_source_file () in the same way we used
gnome_print_job_set_file (). 

Which is the right way to do it? Can we avoid creating a temporary ps
file with GtkPrintOperation? or should we use GtkPrintUnixDialog
directly? 

thanks 
-- 
Carlos Garcia Campos (KaL)
   elkalmail yahoo es
   carlosgc gnome org
   http://carlosgc.linups.org
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]