home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sun / apps / 1844 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.6 KB

  1. Path: sparky!uunet!sun-barr!west.West.Sun.COM!sunaus!assip.csasyd!condor!daves
  2. Date:  7 Sep 92 03:20:40 GMT
  3. Message-ID: <daves.715836040@condor>
  4. Newsgroups: comp.sys.sun.apps
  5. Subject: Re: Pageview overlays pages of some postscript files
  6. References: <8372@sirius.ucs.adelaide.edu.au>
  7. Organization: Computer Sciences of Australia
  8. Reply-To: daves@assip.csasyd.oz.au
  9. From: daves@assip.csasyd.oz.au (David Smart)
  10. Lines: 48
  11.  
  12. In <8372@sirius.ucs.adelaide.edu.au> dclunie@ucs.adelaide.edu.au (David Clunie) writes:
  13.  
  14. > I use pageview on a sparcstation and have found that many postscript files,
  15. > particularly those that originate from PC or Mac worlds (esp WordPerfect
  16. > I think) display without error, but all the pages are piled on top of
  17. > each other as one signal very black page !
  18.  
  19. > I had hoped that this behaviour would have disappeared moving from OW2
  20. > to OW3 but sadly it persists ....
  21.  
  22. > Now I am sure that Sun will say that the postscript files that are a 
  23. > problem are non-standard or something .... that's all very well but
  24. > they print out ok on an Apple LaserWriter.
  25.  
  26. > I am sure others have come up with this problem ... is there a simple
  27. > filter to get around it ? I perused the code of a "good" and a "bad"
  28. > example and quickly discovered that everything is buried in a morass
  29. > of macros that seems impossible for a non-Postscript-speaking person
  30. > like myself to unravel.
  31.  
  32. > Does anyone have a simple answer ?
  33.  
  34. The problem is that PageView uses the %%page command to determine where pages
  35. end.  If there aren't any, it doesn't stop.  This is the wrong behaviour, as the
  36. %%page is specifically a comment (called a "body comment" in the "red book").
  37.  
  38. The red book indicates that an application that "operates on the structure of a
  39. PostScript page description (to extract page subsets, reverse the order of 
  40. pages, etc.) must pay attention to these boundaries".  IMHO, PageView is
  41. emulating a printer, not an application that extracts page subsets, etc.
  42.  
  43. It's easy to see why they did it - it makes provision of next/previous
  44. facilities very easy - but it makes the program incompatible with very correct
  45. PostScript.
  46.  
  47. As for a filter - probably too difficult to create a general filter to do this
  48. (it would have to execute the PostScipt, looking for the page throws, and try
  49. to insert %%page commands in the correct places).  However, it's much easier to
  50. create filters for your favourite PostScript producers - simply get them to
  51. shove %%page commands in after the calls to the appropriate page-throw macros.
  52.  
  53. Dave
  54.  
  55. > -- 
  56. > David Clunie (dclunie@itd.adelaide.edu.au)
  57. -- 
  58. David Smart, Computer Sciences of Australia.
  59. Net: daves@assip.csasyd.oz.au
  60.