KLaus Micheler wrote:
> Hi Jim!
>
> Thank you for your help.
>
> You were right, it was the ^D, which confuses the HP8550DN and
> made it to print the "mediatypeselection - code" as text on a separate page
> of paper.
>
> After removing the ^D, all works, as it should.
>
> On a HP4500 the mediatype result was correct for both cases (^D in the file,
> no ^D in the File).
> It looks like only the HP CLJ8550 has this problem.
It's not surprising, although HP does make good printers
they are anything but consistent in their behaviour. Even
the same model.
> Is there a simple way with ifhp to remove the ^D before the
> "%!-Start of Postscript Flag" from the PS-Code?
Sorry, I can't help you with ifhp but I did the following;
The ^D shouldn't even be there, nor for that matter should
the PJL stuff. It comes from programmers confusing the two
functions; Generating a postscript page description file and
the act of sending it to a printer. They combine the two and
call it a driver. The "driver" should have nothing to do
with generating the postscript nor should the application
concern itself with how it gets to a printer.
The PJL stuff should be added by the driver (Viz. the program
actually talking to the printer) if it is needed at all. I
have found we really don't need it and attempts to use it
cause trouble.
Here I installed a filter which, among other things, strips
everything off a postscript file up to the %! plus everything
after and including the PJL escape sequence "^[%-12345X"
We ask the pertinent questions in postscript rather than PJL.
It works for us, it's amazing how many problems disappeared.
Jim
> > > ^[%-12345X@PJL
> > > @PJL JOB NAME = "PID 20676" DISPLAY = "????"
> > > @PJL RDYMSG DISPLAY = "PID 2067"
> > > @PJL USTATUSOFF
> > > @PJL USTATUS JOB = ON
> > > @PJL USTATUS DEVICE = ON
> > > @PJL USTATUS PAGE = ON
> > > @PJL USTATUS TIMED = 10
> > > @PJL SET MEDIATYPE = TRANSPARENCY
> > > @PJL ENTER LANGUAGE = POSTSCRIPT
> > > ^D%!
> > > <</MediaType (Transparency)>> setpagedevice ### klmi: on this position
> it
> > > does not work
> > > %!PS-Adobe-2.0
> > > %%Version: 3.15
> > > %%DocumentFonts: (atend)
> > > %%Pages: (atend)
> > > %%EndComments
> > > % @(#)postprint.ps 1.31 1/10/94
> > > %ident "@(#)lp:filter/postscript/postscript/postprint.ps 1.1"
> > > %
> > > % Version 3.15 prologue for ASCII files.
> > > %
> > > % <</MediaType (Transparency)>> setpagedevice ### klmi: on this position
> it
> > > works
> > > /noheader true def
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------