[comp.sys.hp] Problems with xwd and xpr to an HP PaintJet.

brown@hpfcdq.HP.COM (John Brown) (06/27/90)

>>
>>  Doesn't produce quality results, infact it makes ugly black lines
>>  throught the printouts, and an occasional string of characters
>>  (very similar to a non-terminated char * in C).
>
>You need to specify "lp -oraw" or the output is processed by such
>actions as tab expansion, page feeds, and cr/lf substitution.
>This processing can make a mess of binary graphic data.  Some
>printer models also have trouble with mixing banner pages with
>raw output, so adding "-onb" to suppress the banner might also
>be helpful.
>
>Mike Stroyan, stroyan@hpfcla.hp.com
>----------

Depending on the sort of hardcopy effect you're trying to achieve, you
may find that you get better results on the Paintjet by piping the
xwd output through xwd2sb and pcltrans rather than xpr.  This works
especially well for cases in which you want the Paintjet output to have
colors which look similar to the colors on the CRT screen.  Here's an
example of how this can be done:

xwd -nobdrs | xwd2sb | pcltrans -C | lp -dpj1 -oraw -onb

Give it a try and see how you like the output from this compared to
the output from xpr.  Check your system's man pages for details on
options for xwd2sb and pcltrans.

John Brown