Re: gtk_print

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

 



On Tue, 19 Aug 2008 10:47:54 +0200 (CEST)
"Richard Boaz" <riboaz@xxxxxxxxx> wrote:

> Hi,
> 
> The documentation for gtk_print states that once the user is finished
> with gtk_print_operation_run(), the "::draw-page" signal will be
> emitted. This signal is then to be caught by the program, using Cairo
> to render to the GtkPrintContext.
> 
> Except that I have a Postscript file that needs to be sent to the
> printer.
> 
> Does this mean that I cannot use the GtkPrint functionality?;
> specifically, the dialog showing the available printers and allowing
> the user to select one of them to send the Postscript file to?

You can draw the postscript file to the cairo surface in the ordinary
way using GtkPrintOperation, or if you are using Unix you could use the
GtkPrintJob/GtkPrintUnixDialog interface to send the postscript file
directly to the underlying print system (cups or lpr) - see
gtk_print_job_set_source_file().

Chris

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux