View Single Post

   
  #2 (permalink)  
Old 01-12-2008, 05:54 AM
Franco Barber
 
Posts: n/a
Default Re: Postscript printing through SunPCi

In article <3FB9589F.B9EE58D7@earthlink.net>,
Dave Johnson <jsqurd@earthlink.net> wrote:
>When trying to set-up a printer with SunPCi II and Windows XP
>professional,
>two lines get added to the top of the print file confusing the
>postscript
>printer:
>
>%-12345X@PJL JOB
>@PJL ENTER LANGUAGE = Postscript
>%!PS-Adobe-3.0

....
>Any ideas?
>
>Dave



The lp program on Solaris recognizes PostScript files by looking
for %! or ^D%! at the beginning of the file.
It DOES NOT use the file command or any other smarts.

The 'ESC%-12345' HP PCL stuff added by the PC side confuses lp.
As far as lp is concerned, if it's not PostScript, it's text,
so it converts the file to PostScript using postprint.

There may be a more elegant solution ... but what I did is:

I worked around this on my solaris 8 box by doing a binary
edit of /usr/lib/lp/local/lp, finding the sequence
control-D % !
and replacing it with
escape % -
It only occurs once in the file.

Do the same change to /usr/lib/print/bsd-adaptor/bsd_lpsched.so
if you want to print PC postscript files using solaris' BSD print daemon.


Franco

--
Franco Barber
feb AT febsun DOT cmhnet DOT org
Reply With Quote