Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Too dark image

Status
Not open for further replies.

cypressm

Programmer
Jul 24, 2003
18
0
0
FR
Hi,

Here is a pcl containing a color pcl image :
It begins like that :
^[*rbC^[*o1d2Q^[&a0H^[&a0V^[*t600R^[&a2409H^[&a141V^[*r4797s-3u1A^[*b9m 281v
^Oÿ^OÑ ]

If I print this file, the image is OK.

Here is the same pcl file, but with some text behind :
It begins like that :
HELLO THIS IS SOME TEXT^[*rbC^[*o1d2Q^[&a0H^[&a0V^[*t600R^[&a2409H^[&a141V^[*r4797s-3u1A^[*b9m 281v
^Oÿ^OÑ ]

If I print this file, colors are wrong, it is too red.

What's the problem ?

Thanks.
 
As you say, the only difference between the two files appears to be some simple text characters at the start of the second file.

This should make no difference to the colours being printed.

You state that you 'print the file'; just what do you mean by that?

The proper way to 'print' a file containing PCL depends on how the device is connected:

For parallel port, use:
Code:
copy  /b  file.pcl  LPT1:

For TCP/IP connect, use:
Code:
lpr  -S ipAddress  -P queueName  file.pcl

The lpr parameters required will depend on what Operating System you are using; the queueName can normally be anything, although some printers insist on particular values (e.g.
Code:
lpt1_passthru
).
 
Under Linux, I send the PCL file to the TCP/IP printer like that :

lpr -PMY_PRINTER file.pcl

 
I don't know Linux, although I did play with Unixware a number of years ago; I think that your command:
Code:
lpr   -PMY_PRINTER   file.pcl
will create a print request (via the spool scheduler) for the defined printer
Code:
MY_PRINTER
.

But how is this logical printer defined? What is its target? Does it just pass data through, or use an interface script which manipulates the data before passing it to the target?
 
It only pass data, there is no manipulation, it is a direct connection to the printer which is a HP OfficeJet G95 connected to the network.
 
In which case, I have no idea why you should observe the reported symptoms.
 
You might try adding "-o raw" to the lp command; although, you would probably have bigger problems if this were an issue.

Do you have <esc>E at the beginning of the file?


Jim Asman
jlasman@telus.net
 
I don't know if this applies here, but...

I read in the PCL Color Reference that if you change the foreground color, to print some color text perhaps, and then print a raster image, the new foreground color will influence the raster image.

Change back to a black foreground color before you print the raster image. <esc>*v0S

Jim Asman
jlasman@telus.net
 
I had this idea but it does not work.
Moreover, the beginning of the image initialize a palette, and normally it re-initialize all.

To resolve my problem, I begin with the image code, and then I put the text code.

But I don't ever understand why it does not work when we put text before the image...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top