[comp.windows.x] Dumping colour graphics to a PaintJet?

wallace@herald.usask.ca (Bill Wallace) (05/15/91)

I have to print out a bunch of examples of Motif interfaces that I have
created.  To accomplish this, I have ordered an HP PaintJet.  Since my
hardware is an HP 9000/425t and includes a driver for a Paintjet, I am 
hoping that this will be easy to accomplish.

My question is this:  Can I do it without having to write all kinds of 
silly routines to dump the contents of a window to the printer?  Anybody
have experience with this?  Any routines available (if required).  Any
suggestions are welcome.  I have about a week to get it working, once the
printer arrives (2 weeks away...) and would like to get some idea of the
task that.

Thanks,  Warren Long  (mail to wallace@herald.usask.ca)

stroyan@hpfcso.FC.HP.COM (Mike Stroyan) (05/17/91)

> I have to print out a bunch of examples of Motif interfaces that I have
> created.  To accomplish this, I have ordered an HP PaintJet.  Since my
> hardware is an HP 9000/425t and includes a driver for a Paintjet, I am 
> hoping that this will be easy to accomplish.

> Thanks,  Warren Long  (mail to wallace@herald.usask.ca)

It is easy.  Use the command -

  xwd | xpr -device pjet | lp -onb -oraw -dpaintjet

This waits for you to press a button over a window, then prints that window.
The "paintjet" in the line is the lp printer name.  It should match  whatever
printer name you chose when you set up the printer with SAM or lpadmin.

Mike Stroyan, mike_stroyan@fc.hp.com