Patrick Powell writes;
> Well,  I started looking into removing PJL from a job file and
> discovered that it is not quite as easy as I thought.
> 
> Removing it from the start YES.  But what about any stuff at the end?
> In the middle?
> 
> Any comments from the list on this?

Stuff at the end:  Remove everything after and including the
PJL escape sequence (viz. ^[%-12345X).  Also check for a 
subsequent trailing ^D.

Stuff in the middle: there won't be any because any new PJL has
to be introduced by the above sequence but by definition that
is the end of the program.

I've never seen a postscript file with PJL in the middle of it
and I've never had a complaint that part of job was missing
which was attributable to that.

Furthermore, although I've never seen it specified, I believe a
new "ENTER POSTSCRIPT" command , which would be required if you
escaped into PJL, would restart the postscript interpreter
which implies a whole new postscript file.

In another message Brandon S. Allbery writes;
> FWIW I've been running for some time with a hacked filter (stolen from 
> netatalk) which strips PJL from the start and the end.  (It's not very 
> good; it strips to the first %! and from a trailing \E%-12345X to end --- 
> this seems to cause problems with the Windows HP5SiMX driver, the target 
> printer needs a hard reset to recover.  Sheesh).  This was necessary for 
> mixed Unix and Windows printing in our environment.

Sounds like what we do and we haven't had any problems.  On the
other hand we don't interfere with a windows machine delivering
straight to a printer (ie. physically connected) It's only the
stuff that comes through unix that we massage.

I think it is because they have combined the two functions of
file generation and printer driver into one program which they
call a driver.  When it is directly connected it works well
enough but when it is to be delivered over the net to a
spooler some of it (eg. PJL) is no longer appropriate.

> The flag is now 'remove_pjl_from_start'  :0)

Aw ... I think you can stick with remove_pjl.

        Jim


-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to