×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Too dark image

Too dark image

Too dark image

(OP)
Hi,

Here is a pcl containing a color pcl image : http://cypressm.free.fr/images/gu.pcl

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 : http://cypressm.free.fr/images/gu2.pcl

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.

RE: Too dark image

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:
     copy  /b  file.pcl  LPT1:

For TCP/IP connect, use:
     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. lpt1_passthru).

RE: Too dark image

(OP)
Under Linux, I send the PCL file to the TCP/IP printer like that :

lpr -PMY_PRINTER file.pcl

RE: Too dark image

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

RE: Too dark image

(OP)
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.

RE: Too dark image

In which case, I have no idea why you should observe the reported symptoms.

RE: Too dark image

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

RE: Too dark image

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

RE: Too dark image

(OP)
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...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close