home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / applicat / 8802 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.6 KB

  1. Path: sparky!uunet!portal!cup.portal.com!soft-logik
  2. From: soft-logik@cup.portal.com (Kevin W Davidson)
  3. Newsgroups: comp.sys.amiga.applications
  4. Subject: Re: Error in Pagestream PostScript
  5. Message-ID: <69808@cup.portal.com>
  6. Date: Wed, 18 Nov 92 20:07:50 PST
  7. Organization: The Portal System (TM)
  8. References:  <Bxx5CL.5xI@news.iastate.edu>
  9. Lines: 33
  10.  
  11. >I have discovered an error in Pagestream 2.21 generated PostScript code.  The
  12. >error deals with the code that handles the generation of arrows at the end
  13. >of lines.
  14. >
  15. >In /doendstyle there is a line that reads:
  16. >
  17. >/angle dy dx atan def
  18. >
  19. >If dx and dy are both zero, this causes an /undefinedresult error with atan in
  20. >standard PostScript.  A couple of documents that I have recently produced
  21. >have generated this error when I attempted to print them.  A proposed solution
  22. >is to change this line to:
  23. >
  24. >/angle dy dx 2 copy add 0 eq {pop pop 0} {atan} ifelse def
  25. >
  26. >which will return zero if both operands are zero, otherwise it will perform
  27. >the atan function with the original operands...
  28. >
  29. >Dave
  30. >
  31. >--
  32. >---------------------------------------------------------------------------
  33. >Dave R. Madsen        | Computer Science Department | Office: 107 Atanasoff
  34. >Systems Support Group |   Iowa State University     | madsen@cs.iastate.edu
  35. >---------------------------------------------------------------------------
  36. >
  37.  
  38. Gee, I thought that was fixed. Are you running the latest version of the
  39. PostScript printer driver? The current one is version 2.2.11.
  40.  
  41. Kevin Davidson, Asst. Moderator AmigaZone Vendor Support - PORTAL
  42.                <soft-logik@cup.portal.com>
  43.         SOFT-LOGIK BBS (PCP MOSLO) (314) 894-0057
  44.