home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / postscri / 6394 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  2.1 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!news
  2. From: ab@nova.cc.purdue.edu (Allen B)
  3. Newsgroups: comp.lang.postscript
  4. Subject: Re: FAQ: how do I print in landscape mode
  5. Message-ID: <C17vuM.MJt@mentor.cc.purdue.edu>
  6. Date: 21 Jan 93 18:39:57 GMT
  7. References: <1993Jan19.151653.589@cfa203.harvard.edu>
  8. Sender: news@mentor.cc.purdue.edu (USENET News)
  9. Organization: Purdue University
  10. Lines: 49
  11.  
  12. In article <1993Jan19.151653.589@cfa203.harvard.edu> alberto@cfa203.HARVARD.EDU  
  13. (Alberto Accomazzi, WIPL, B-234, x57076) writes:
  14. > The simple solution that I have found and that works
  15. > for some of the files is to stick the following PS code at the
  16. > beginning of the file:
  17. >         90 rotate llx neg ury neg translate
  18.  
  19. You should also redefine showpage in terms of the current
  20. definition of showpage.  Don't base yours on systemdict. 
  21. Do something like: 
  22.  
  23. /oldshowpage /showpage load def
  24.  
  25. /showpage
  26. {
  27.     oldshowpage
  28.         90 rotate llx neg ury neg translate
  29. } def
  30.  
  31. Some printers have a function called setpageparams that
  32. allows you to use different paper sizes.  Will
  33. GhostScript do that?  There are better ways in Level 2
  34. also.
  35.  
  36. > For some of the files that I have come across, however, the approach
  37. > described above fails due to the presence in the PostScript code of
  38. > calls to initgraphics or other weird commands that screw up the
  39. > graphics state.  So my question is this: is there a general,
  40. > bullet-proof way of printing any PostScript document in landscape
  41. > mode, no matter what the code looks like?
  42.  
  43. If they use initgraphics, don't use their program.  You
  44. can redefine initgraphics as well, but yuck! 
  45.  
  46. Nearly all the important PostScript I print here gets
  47. headers similar to the one described above (sometimes as
  48. many as four of them) tacked on it.  That's to accommodate
  49. different paper sizes, pasteup formats, environments,
  50. etc.
  51.  
  52. If a program generates PostScript that won't cooperate,
  53. they should fix their program.  Send them a letter or call
  54. tech support and ask >them< for a way to do what you want.
  55.  
  56. I know in the generic case, that's not a solution, but
  57. generic solutions fall apart if they try hard enough. :-) 
  58.  
  59. ab
  60.