1829013 Members
2322 Online
109986 Solutions
New Discussion

pcltrans

 
Werner Rips
Advisor

pcltrans

Hello,
I have a problem with pcltrans. What I want to do is print a starbase window with the followin comandline:
xwd -name 'xy' | xwd2sb | pcltrans -C -j -q -n | lp -ddj1120c -onb -oraw.
My problem is the background color of the window. The -n option in the pcltrans command should suppress the printing of the background but it doesn't allways do what it should do. If I have e.g. an xclock window with backgound black the printing works fine without printing the background color and with the hands in black that where displayed white.
But printing of other windows created by customer software Im unable to suppress the printing of the black background. And what I have to do to suppress a background of other color I don't know either.

If anyone has done something like this, please help.

Thanks in advance,
Werner
3 REPLIES 3
Alex Glennie
Honored Contributor

Re: pcltrans

s of 9.0, pcltrans contains an undocumented option called:

-SDRC

This option will change all white pixels to black pixels. If your
intent is to go from white text on a black background to black text on a
white background, then you have to also add the

-k

option to pcltrans to supress the original black background, otherwise
you end up with black text on a black background - which is probably not
very useful.

may help ?
Alex Glennie
Honored Contributor

Re: pcltrans

ignore that I think the -n option replaced the -SDRC one in which case it still won't work.

A possible explanation the -n option
can only be used with printers who accept the "-I" option (all PCL-5 Deskjet and
Paintjet printers).

What printer model are you using here ?

ps I'm out of the UK Response Centre , so may find it tricky to rely back to this immediately
Werner Rips
Advisor

Re: pcltrans

Hi Alex,
hope Im not to late, but thank you for your tips with some undocumented option -SDRC. I have not tested it yet. I expirienced some trouble with the -n option. Sometimes it does what it should, sometimes not. See my first message. My printers are DeskJet 1120C and 1125C. They only understand PCL3 I think?