Path: utzoo!utgpu!attcan!uunet!lll-winken!arisia!sgi!msc@canth.SGI.COM From: msc@canth.SGI.COM (Mark Callow) Newsgroups: comp.windows.news Subject: Re: psview bug Summary: fix for psview problem Message-ID: <20382@sgi.SGI.COM> Date: 10 Oct 88 01:46:55 GMT References: <8809300237.AA23796@brillig.umd.edu> Sender: daemon@sgi.SGI.COM Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 46 In article <8809300237.AA23796@brillig.umd.edu>, marshall@software.ORG (Eric Marshall) writes: > > There is a bug in psview which appears when displaying > many of the files generated by psroff. The error only occurs > when attempting to display the first page of a document. Psh'ing > > NeWS error ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ---- > Process: 0x10E3A4 Error: nocurrentpoint We had this problem as well so I fixed it. I asumed that our psroff must be different from the one they use at Sun since it clearly worked for them. The fix is to add the line 0 0 moveto to psview.cps as shown below cdef ps_startpage() /@DictHeight countdictstack def @Dicts length 1 sub -1 0 { @Dicts exch get begin } for PGC { /@DictHeight countdictstack def @Dicts length 1 sub -1 0 { @Dicts exch get begin } for * 200 dict begin ****** 0 0 moveto cdef ps_endpage() * end . . . You might also want to add the lines 200 dict begin . . end as shown above since there are many PS programs that define lots of things on each page. I have sent these changes to Sun. Hopefully they will be included in the next psview. -- From the TARDIS of Mark Callow msc@sgi.sgi.com, ...{ames,decwrl,sun}!sgi!msc "There is much virtue in a window. It is to a human being as a frame is to a painting, as a proscenium to a play. It strongly defines its content."