: Under HP-UX 9.05, I wish to make dump screen dumps and print them
: out in color on our HP color laserjet.
: I am using:
: xwd -screen | xpr -device ps | lp -d ColorLaserJet
: and still getting BLACK 'n WHITE copies !
: I can only get color by changing the device above to 'pjetxl', for HP's
: Color Paint Jet XL. The resolution is not that great, and I hoped I
: could get better using postscript.
: Any suggestions ? Any options I am overlooking?
xpr is a very old program and has not been enhanced for several years,
apparently because it is part of the MIT distribution. The pjetxl refers
to a late 1980's PaintJet printer (not the PJ-XL/300) which had only 180
dpi resolution and limited color capability. It has no code for PostScript
Level 2 which is need for color. For HP color printers such as the Color
LaserJet, the DeskJet 1200 and 1600, the PaintJet XL-300 and other PCL
color printers, use the following incantation:
XPATH=/usr/local/bin/X11
$XPATH/xwd -frame | XPATH/xwd2sb | pcltrans -I -g1.9 -h10 -d8 | lp -oraw
Be sure to use -oraw since the data stream will be binary. Check the man
page on pcltrans for the large number of options available to control the
final image. This is a good string for a script that pauses for 3-5 secs
to allow raising the window to be printed.
--
__?__
/ \
/ ^ ^ \
( (o) (o) )
\ /
*=oOOO======(_)=====OOOo====*=====================================*
| Bill Hassell | Hewlett-Packard Response Center |
*=============Oooo.=========*=====================================*
.oooO ( )
( ) ) / "There are two types of computer users in the
\ ( (_/ world...those that have lost data, and those
\_) that are going to." (blh, circa 1972)