[bug-pcl] PCL - works on printer not on ghostPCL
amn
amn at bytron.com
Thu May 26 02:04:46 PDT 2005
Paul,
Thanks for taking the time to reply. I have tried what you suggested
unfortunately it doesn't seem to have effected the problem I'm experiencing.
I've attached the PCL file to this message, I'd appreciate it if you could
just confirm I have it in the right place, it may also give you a better
idea of the issue as it is quite hard to explain. Thanks for your time
Adam
-----Original Message-----
From: Paul Lechnar [mailto:paul at mis.com]
Sent: 25 May 2005 16:33
To: amn
Cc: bug-pcl at ghostscript.com
Subject: Re: [bug-pcl] PCL - works on printer not on ghostPCL
Adam - from you description, it is likely you are having a "stair-step"
problem which is common in the PCL world. It has to do with the
difference between the Carriage Return (CR) and Line Feed (LF)
characters which are at the end of each line of the document. If you
are in fact getting stair stepping, then it's likely that your document
has LF (ASCII 10) characters at the end of each line but no CR (ASCII
13) along with it. The effect is that the "cursor position" is moved
DOWN a line, but not RETURNED to the left side of the page (think old
manual typewriters and the Ding! sound). It's also likely that the
Optra is compensating for this automatically (it's a common setting on
Laser printers to make LF behave like CR/LF). GhostPCL does NOT do this
by default. However, here's something to try: add the following PCL
command to the beginning of your document:
<ESC>&k2G
This is the ESC character (ASCII 27) followed by an ampersand, lowercase
letter "k", numeral 2, and uppercase letter "G".
This tells a PCL engine to convert LF to CR/LF and should fix your
problem. Note, however: if there are other PCL commands at the
beginning of your document, this PCL command should come after most of
the other PCL commands, especially <ESC>E which is the PCL reset command
and will wipe out that conversion setting.
Hope that helps,
Paul
amn wrote:
>Hi,
>
>Firstly an apology, I'm new to using PCL and have inherited someones code
so
>please excuse any stupid questions/comments I may make.
>
>The code I have at the moment produces a PCL document that prints perfectly
>on a printer (a lexmark optra S 2455 if that makes any difference). However
>when I run the PCL through ghostPCL (or some other free utils I have found)
>the output is not as expected, it appears as if the image has been skewed
at
>regular intervals. This leads me to believe that there must be a problem
>with the PCL that is produced. However I'm unsure of how to check the
>validity of the PCL as it appears to print correctly. Any advice would be
>appreciated, I can attach the PCL if that would be useful.
>
>Apologies if this is the wrong place for this.
>
>Regards
>
>Adam Neal
>
>_______________________________________________
>bug-pcl mailing list
>bug-pcl at ghostscript.com
>http://www.ghostscript.com/mailman/listinfo/bug-pcl
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PWE_30_EGRR.zip
Type: application/x-zip-compressed
Size: 51811 bytes
Desc: not available
Url : http://ghostscript.com/pipermail/bug-pcl/attachments/20050526/08f7285f/PWE_30_EGRR-0001.bin
More information about the bug-pcl
mailing list