[comp.windows.news] Printing NeWSIllustrator PostScript Files

ciemo@bananapc.SGI.COM (Dave Ciemiewicz) (01/12/89)

Silicon Graphics (and I believe Sun) uses Adobe's TranScript software for
printing text on PostScript printers like the Apple LaserWriter.  To print
the files generated by Bernard Yves NeWSIllustrator, I've had to add '%!'
PostScript magic number to the files by hand.  To quote the Red Book
(PostScript Language Reference Manual, p. 265, Comment Conventions),

	The very first line of every PostScript program (whether it
	is conforming or nonconforming) should be a comment that begins
	with the characters `%!'.

By adding the line in the contextual illustrated in the contextual diff below,
NeWSIllustrator will now generate PostScript files with the '%!' magic number
allowing users to do things (on SGI boxes) like "lp ps0".

*** Old stuff
--- New lines with magic number code (don't forget to remove the '+' character)
***************
*** 302,307
  
  
  /PrintPS_header{ %postscript utilities
  PSfile 
  (/rect {dup 0 exch rlineto exch 0 rlineto neg 0 exch rlineto closepath } def
  /ovalpath { matrix currentmatrix 5 1 roll

--- 302,308 -----
  
  
  /PrintPS_header{ %postscript utilities
+ PSfile (%!\n) writestring	% PostScript header magic number
  PSfile 
  (/rect {dup 0 exch rlineto exch 0 rlineto neg 0 exch rlineto closepath } def
  /ovalpath { matrix currentmatrix 5 1 roll
***************
--

ciemo 	   (pronounced SEE-MO)			"Language is a virus"
Ciemiewicz (pronounced SI-MI-WITZ) 			--- Laurie Anderson
Dave	   (pronounced DAYV)