Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!linac!att!ucbvax!NIEHS.BITNET!ALBRO From: ALBRO@NIEHS.BITNET Newsgroups: comp.sys.apple2 Subject: Re: Printing GS Postscript Files on Another Machine Message-ID: <9102262158.AA07144@apple.com> Date: 26 Feb 91 21:57:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 45 I originally wrote: >>Several people have given tips on how to edit IIgs Postscript files so that >>they will print on other machines, esp. a Vax. One suggestion was to edit >>off the first part of the file up to the %!PS-Adobe part. Another >>was to find the line that starts 'waittimeout' and delete some of the >>intermediate information. My question is, with what do you do the editing? >>The file contains zeros, so most text editors won't load it in (beyond the >>first zero, which comes before the %!Adobe.) Appleworks loads it in, but >>substitutes # marks for each unprintable code or group of codes. What am I >>missing here? Dave Seah (seah@ee.rochester.edu) replied: >A Postscript program should be all ASCII text, so you may be able to just >nuke all the zero crap in the front of the file up to the "%!PS-Adobe" >line. As long as you have the %PS-Adobe comment line ("%" is the comment >character), my guess is that the printer daemon will assume that you >are printing Postscript code and download it to the printer. -- What I left out of my first post was that the Postscript files have zeros both before and after the "%!PS-Adobe" . Here is a hex dump of the start of the file: 73 74 61 74 75 73 64 69 63 74 2F 6A 6F 62 6E 61 6D 65 28 55 73 65 72 20 2D 20 00 02 00 F8 7A 00 00 1E 7B 07 00 C7 00 00 00 00 2C 20 44 6F 63 75 6D 65 6E 74 20 2D 20 55 6E 6B 6E 6F 77 6E 29 70 75 74 0D 25 21 50 53 2D 41 64 6F 62 65 2D 32 2E 30 0D 25 25 54 69 74 6C 65 3A 20 55 6E 6B 6E 6F 77 6E 0D 25 25 46 6F 72 3A 20 00 02 00 F8 7A 00 00 1E 7B 07 00 C7 00 00 00 00 0D 25 25 43 72 65 Line 5, starting at 25 21 50 53 2d 41 64 6f 62 65 is the %!PS-Adobe, but there are still zeros in lines 7 and 8 (but no more beyond line 8). That means AppleWorks, the only editor I can find that will load the file without stopping at the first zero in line 2, will rewrite the corrected file to disk with #'s in place of several of the characters (zeros, 2's) in lines AFTER the %!PS-Adobe. This won't print. Text editors that don't change anything you don't tell them to change wont load the file in the first place (because of the zeros.) I gather those zeros in lines 7-8 aren't supposed to be there, but they are there in every file I've saved so far. This is with system software 5.0.4, the Laserwriter driver renamed Foziedriver, and the file winding up as POSTSCRIPT.GS00 in the Drivers folder, as it is supposed to be. What's going on? Brought to you by Super Global Mega Corp .com