Re: gtk_print



On Tue, 19 Aug 2008 10:47:54 +0200 (CEST)
"Richard Boaz" <riboaz xs4all nl> 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



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