Xref: utzoo comp.lang.postscript:3706 comp.text.desktop:1059 Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!super!chris From: chris@super.ORG (Chris P. Ross) Newsgroups: comp.lang.postscript,comp.text.desktop Subject: Re: Another EPS question Keywords: EPS Macintosh Message-ID: <18645@mikado.super.ORG> Date: 10 Jan 90 21:21:51 GMT References: <673@sppy00.UUCP> <138@qtlon.quantime.co.uk> Sender: news@super.ORG Reply-To: chris@super.UUCP (Chris P. Ross) Organization: Supercomputing Research Center, Bowie, MD Lines: 66 In article <138@qtlon.quantime.co.uk> skyer@qtlon.UUCP (Susannah Skyer) writes: >I don't think you need a special utility to do this >(print Mac-created EPS files on UNIX to a PostScript printer) > >Here's what I'd do: > on the Mac, in the application in which you've created your >graphic, print the PostScript file to disk. > send this new file (it should be the PostScript code) to your UNIX machine. > on your UNIX machine, check that what you've got looks like a >PostScript program (i.e., readable code, not garbage characters) > using vi, add the line > "showpage" >to the end of the file. This will make the printer show the picture, >as opposed to waiting for more PostScript, which is what the printer >would otherwise do with _encapsulated_ PostScript > >send the file to your printer. lpr, or whatever your site's print >command is, should work, because the first line of the file should >tell the printer, "I'm a PostScript file." > >Susannah Skyer >Technical Author >Quantime UK Alright, well, I couldn't pass this one up. This, as taken from comp. lang.postscript, is not correct. The big problem here is that Macintosh uses a file from it's system folder called Laser Prep. This LaserPrep file contains definitions and routines that are called as the md dictionary from the EPS code. If you take a look at the generated EPS from a macintosh, it WILL start with the traditional %!, but you'll also notice that a few lines down in the header there's: %%IncludeProcSet: "(AppleDict md)" 68 0 or the like, and the first non-%% line is: md begin therefore, you need to have the md dict defined previously. The Mac will do this automatically by sending the LaserPrep file to the printer before it's first print job, but unless you get the EPS using the CMD-K sequence (I'm assuming you're using the CMD-F sequence, you didn't say) the LaserPrep file will NOT be in the generated EPS. Now, if you ARE using the CMD-K sequemce to get the EPS saved to disk, I don't know why it wouldn't work on any postscript printer, but, I tried that once or twice myself, and it didn't work. I eventually found a shell script that would prepend the proper version of AppleDict md (in my case, 68, which cooresponds to LaserPrep 5.2 on the Mac) and do one or two other minor things to the EPS before sending it to the printer via lpr. If this is any help, I'm happy to have helped, if I'm wrong, go ahead and tell me about it. I know that my way works, cause I use it all the time, and I'm 99 44/100% sure that what was posted by Susannah Skyer will not work as she posted it. Maybe I'm not reading in what was supposed to have been read in that would make it correct, if so, I appologize. Enjoy, and any information can me sent to me at chris@super.org. Just trying to be helpful-- - Chris -- -=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=- Chris P. Ross | (301)/805-7318 | Internet: chris@super.org "There can be only one..." | 0830-1700 EST | UUCP : uunet!super!chris -=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-