home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!news
- From: ab@nova.cc.purdue.edu (Allen B)
- Newsgroups: comp.lang.postscript
- Subject: Re: FAQ: how do I print in landscape mode
- Message-ID: <C17vuM.MJt@mentor.cc.purdue.edu>
- Date: 21 Jan 93 18:39:57 GMT
- References: <1993Jan19.151653.589@cfa203.harvard.edu>
- Sender: news@mentor.cc.purdue.edu (USENET News)
- Organization: Purdue University
- Lines: 49
-
- In article <1993Jan19.151653.589@cfa203.harvard.edu> alberto@cfa203.HARVARD.EDU
- (Alberto Accomazzi, WIPL, B-234, x57076) writes:
- > The simple solution that I have found and that works
- > for some of the files is to stick the following PS code at the
- > beginning of the file:
- >
- > 90 rotate llx neg ury neg translate
-
- You should also redefine showpage in terms of the current
- definition of showpage. Don't base yours on systemdict.
- Do something like:
-
- /oldshowpage /showpage load def
-
- /showpage
- {
- oldshowpage
- 90 rotate llx neg ury neg translate
- } def
-
- Some printers have a function called setpageparams that
- allows you to use different paper sizes. Will
- GhostScript do that? There are better ways in Level 2
- also.
-
- > For some of the files that I have come across, however, the approach
- > described above fails due to the presence in the PostScript code of
- > calls to initgraphics or other weird commands that screw up the
- > graphics state. So my question is this: is there a general,
- > bullet-proof way of printing any PostScript document in landscape
- > mode, no matter what the code looks like?
-
- If they use initgraphics, don't use their program. You
- can redefine initgraphics as well, but yuck!
-
- Nearly all the important PostScript I print here gets
- headers similar to the one described above (sometimes as
- many as four of them) tacked on it. That's to accommodate
- different paper sizes, pasteup formats, environments,
- etc.
-
- If a program generates PostScript that won't cooperate,
- they should fix their program. Send them a letter or call
- tech support and ask >them< for a way to do what you want.
-
- I know in the generic case, that's not a solution, but
- generic solutions fall apart if they try hard enough. :-)
-
- ab
-