home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / software / 1322 < prev    next >
Encoding:
Text File  |  1992-08-25  |  4.7 KB  |  113 lines

  1. Path: sparky!uunet!gatech!destroyer!caen!hellgate.utah.edu!dog.ee.lbl.gov!overload.lbl.gov!overload.lbl.gov!news
  2. From: seidl@next1.lbl.gov (Peter Seidl)
  3. Newsgroups: comp.sys.next.software
  4. Subject: postscript formats, previewer
  5. Date: 25 Aug 1992 21:05:37 GMT
  6. Organization: Lawrence Berkeley Laboratory, Berkeley CA
  7. Lines: 98
  8. Distribution: world
  9.   i
  10. Message-ID: <17e7b1INNfje@overload.lbl.gov>
  11. Reply-To: seidl@next1.lbl.gov
  12. NNTP-Posting-Host: next1.lbl.gov
  13. Keywords: postscript, preview
  14.  
  15. I have not been able to display in color a Postscript file that was translated  
  16. from cgm format on a MacIntosh using the Preview utility (release 2.0 v22).  
  17. however, the same file shows colors nicely on a Silicon Graphics computer. This  
  18. is what the beginning of the file looks like:
  19.  
  20. %!PS
  21. save
  22. /w {setlinewidth} def
  23. /l {lineto} def
  24. /n {newpath} def
  25. /m {moveto} def
  26. /s {scale} def
  27. /c {setlinecap} def
  28. /j {setlinejoin} def
  29. /r {restore} def
  30. /h {showpage} def
  31. /t {stroke} def
  32. /f {eofill} def
  33. /ct 256 array def
  34. /o {ct exch get aload pop setrgbcolor} def
  35. 125 .125 s
  36. 1 c
  37. 1 j
  38. n
  39.  ct 0 [1.000 1.000 1.000] put
  40.  ct 1 [0.000 0.000 0.000] put
  41.  ct 2 [1.000 0.000 0.000] put
  42.  
  43.  
  44.  
  45.  
  46. Now, I realize that this does not have the recommended file header (the  
  47. Previewer warns that "the file is missing the proper PostScript header  
  48. information.  If you attempt to open it anyway, you will only be able to page  
  49. through the file's pages sequentially.)  But I haven't had much success with  
  50. modifying the header, as per my next puzzle:
  51.  
  52. I have files that were generated on a Digital Vax computer, and get the same  
  53. message as above.  Here is what the beginning of the Vax generated Postscript  
  54. files look like:
  55.  
  56. %!PSAdobe-1.0                                                                   
  57. %%Creator: SEIDL                                                                
  58. %%Title:                                                                        
  59. %%CreationDate: 08/20/1992 13:49:12                                             
  60. %%Pages: (atend)                                                                
  61. %%DocumentFonts: (atend)                                                        
  62. %%BoundingBox: (atend)                                                          
  63. %%EndComments                                                                   
  64. /saveobj save def                                                               
  65. /center {/yarea exch def /xarea exch def newpath clippath pathbbox              
  66.  /ury exch def /urx exch def /lly exch def /llx exch def                        
  67.  /xoff urx llx sub xarea sub 2 div llx add def                                  
  68.  /yoff ury lly sub yarea sub 2 div lly add def                                  
  69.  xoff yoff translate} def                                                       
  70. /draw {lineto currentpoint stroke newpath moveto} def                           
  71. /move {newpath moveto} def                                                      
  72. /font {exch findfont exch scalefont setfont} def                                
  73. /background {/yarea exch def /xarea exch def gsave newpath 0 0 moveto           
  74.  0 yarea lineto xarea yarea lineto xarea 0 lineto closepath                     
  75.  eofill grestore} def                                                           
  76. /defaults {setlinewidth setlinecap setlinejoin setmiterlimit                    
  77.  0 array 0 setdash newpath 0 0 moveto} def                                      
  78. %%EndProlog                                                                     
  79. %%Page: 1 1                                                                     
  80. 575.28 744.48 center 0 0 0 setrgbcolor 10 0 0 0.1008 defaults 476.547 67.68     
  81. move 467.039 67.68 move 476.547 67.68 move 467.039 67.68 draw 467.039 67.68     
  82. move 457.531 67.68 move 467.039 67.68 move 457.531 67.68 draw 457.531 67.68     
  83. move 448.024 67.68 move 457.531 67.68 move 448.024 67.68 draw 448.024 67.68     
  84.  
  85.  
  86.  
  87. This file does not have any color in it.  However, what I would like to do, if  
  88. possible, is to somehow convert this file to be compatible with eps format so  
  89. that I may import it into Framemaker documents.  Presently, I make bitmaps into  
  90. tiff files, but this seems clumsy.  I have tried a few things like changing the  
  91. file extension from .ps to .eps, and also modifying the comment header to  
  92. conform with what I read in Supplemental documentation: Encapsulated PostScript  
  93. File Specification, Version 2.0, pp. 4-5.  That didn't help.
  94.  
  95. Suggestions? 
  96.  
  97.  
  98. --
  99. Peter Seidl
  100. Heavy Ion Fusion Accelerator Research 
  101. Lawrence Berkeley Laboratory
  102. Berkeley, CA 94720
  103.  
  104. seidl@next1.lbl.gov
  105.  
  106. --
  107. Peter Seidl
  108. Heavy Ion Fusion Accelerator Research 
  109. Lawrence Berkeley Laboratory
  110. Berkeley, CA 94720
  111.  
  112. seidl@next1.lbl.gov
  113.