Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!sun-barr!newstop!exodus!birdland!rberlin From: rberlin@birdlandEng.Sun.COM (Rich Berlin) Newsgroups: comp.lang.postscript Subject: Re: mirror image Message-ID: <11404@exodus.Eng.Sun.COM> Date: 11 Apr 91 16:23:18 GMT References: <14828@mcdphx.phx.mcd.mot.com> Sender: news@exodus.Eng.Sun.COM Reply-To: rberlin@Eng.Sun.COM Organization: Sun Microsystems Lines: 44 The first thing you should try for mirror imaging is probably to see if the printer has a "mirror" button. It's a common option on color printers and typesetters (on the latter, the orientations are called Right-Reading Emulsion-Down, or RRED, and Right-Reading Emulsion-Up, RREU). In article , rodney@sun.ipl.rpi.edu (Rodney Peck II) writes: |> 8.5 72 mul 0 translate |> -1 1 scale |> |> . . . |> |> If you use some strange page size, you should use it's |> width in points instead of 8.5 72 mul. Alert of Rodney to mention that it's size specific. It seems that lots of people are taught to code the page size into their documents, but it's not necessary, and often can lead to problems when you print on more than one type of printer. The PostScript interpreter can ALWAYS tell your program the size of the page. Add the following procedure to your bag of tricks: /printable-area { % - => llx lly urx ury gsave clippath pathbbox grestore } bind def leaves the dimensions of the current clip area, in current user coordinates, on the top of the stack. (This probably qualifies for the FAQ list.) If it's done before anyone has done any clipping, the current clip area = the imageable area. (If your document has been included in another one, the including document should have set your clip area for you, so it's probably better that you *not* do an initclip, though an alert program designer will overshadow initclip when including documents, for just this reason.) To mirror image the document, try printable-area % stack: llx lly urx ury 0 exch % llx lly urx 0 ury translate % llx lly urx pop pop pop % - -1 1 scale -- Rich