Printing a postscript shell pipeline using gnomeprintui

View: New views
3 Messages — Rating Filter:   Alert me  

Printing a postscript shell pipeline using gnomeprintui

by Michael R. Head :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've got a commandline program that spits out postscript, and I'd like
my program to use the gnomeprint dialog to select a printer and send the
postscript data to the selected printer. I'd also like to tie in to the
print preview feature of the dialog, too.

Ideally, I'd like to do no rendering myself. The postscript output
should go from the commandline program directly to printer.

I assume this should be pretty easy to do. What APIs should I be looking
at?

mike
--
Michael R Head <burner@...>
burner | suppressingfire | firestorm | phoenix | firefighter

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

Parent Message unknown Re: Printing a postscript shell pipeline using gnomeprintui

by Michael R. Head :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 2005-08-24 at 08:02 +0200, Lutz Müller wrote:
> On Tue, 2005-08-23 at 17:26 -0400, Michael R Head wrote:
> > Ideally, I'd like to do no rendering myself. The postscript output
> > should go from the commandline program directly to printer.
> >
> > I assume this should be pretty easy to do. What APIs should I be looking
> > at?
>
> libgnomeprint/gnome-print-job.h: gnome_print_job_set_file

Thanks. I see that it is not a stable API yet, and what's worse is that
it doesn't appear to be exported in the pygtk bindings for gnomeprint.

Is there a more complex, but better supported method?

thanks again,
mike

--
Michael R Head <burner@...>
burner | suppressingfire | firestorm | phoenix | firefighter

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

Parent Message unknown Re: Printing a postscript shell pipeline using gnomeprintui

by Michael R. Head :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2005-08-25 at 23:06 +0200, Lutz Müller wrote:
> On Thu, 2005-08-25 at 12:19 -0400, Michael R Head wrote:
> > Well, I really like the printer selector dialog (and to a lesser extent,
> > the print preview system).
>
> Without using the libgnomeprint API, you won't be able to use the print
> preview system.

Right. The printer selector is the main thing for me, I can live without
print preview.

> > Is there a way to use the dialog to get at
> > the printer for direct use with lpr or CUPS?
>
> I have never tried that.

OK, thanks. For now I'm going to stick with simply generating the
postscript and fork/exec gtklp. Maybe at some point in the future the
set_file API will become stable and be available in pygtk.

thanks again,
mike

--
Michael R Head <burner@...>
GPG: http://www.suppressingfire.org/~burner/gpg.key.txt (ID 23A02B1F)


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

signature.asc (196 bytes) Download Attachment
LightInTheBox - Buy quality products at wholesale price!