[comp.sys.next] Mac printing to NeXT laser problems

chai@hawk.cs.ukans.edu (Ian Chai) (03/23/91)

We have a NeXT cube attached to our regular UNIX machine whose
laserprinter we can use from the unix machine by typing
% lpr -Pnp file.ps
to send a postscript file.ps to. It's worked with some stuff I
downloaded off ftp.ncsa.uiuc.edu before, so I know the setup
works. However, when I tried it with a postscript file I obtained
on the Mac by pressing option-k or option-f, it would not print,
complaining of a postscript error.

Could anyone tell me what is the correct way to produce postscript
output from a Mac to send to a NeXT's laserprinter?

Email and I'll summarize... thanks.

chai@cs.ukans.edu
-- 
Ian Chai        Internet: chai@cs.ukans.edu
                Bitnet:   2fntnougat@ukanvax

pwhite@cup.portal.com (Phil AZX White) (03/23/91)

How to print PS from MAC ctrl-K on NeXT laser printer...

got these off a previous posting awhile back and works great.

1.      do the ctrl-K thing
2.      use the MAC file transfer capabilities to get postscript0 file to NeX
3.      create the following SED script
        1i\
        %!PS-Adobe-2.0
        402,421d
        82,83d
        20,24c\
        /ok true def\
        /LW false def\
        /waittimeout 300 def\
        /fc {} def
        8,18d

4.      execute "SED -f script-filename input-filename>output-filename.ps
5       execute "lpr output-filename.ps
6.	ignore the " in steps 4 and 5 above (typo)
7.	printer does its thing and all are happy

Works 99% of the time.  Occasionally get an alert for bad command  
"restore", but still get the output just fine.

Also, works for a DEC/VAX LPS 40 print server by doing the same things
to postscript file header, except don't think you need the !PS-ADOBE-2.0

Word of caution... use only fonts available to your target printer or
you'll get a warning (on a VAX) or wrong font on NeXT.

Not sure what the above is really doing to Postscript header... but thanks
to whoever originally posted the method...it does the job perfectly!
Best wishes,
Phil White