🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #5307

Re: mirror image

#5307
From: Rodney Peck II
Date: Wed, 10 Apr 1991 15:38
29 lines
1421 bytes
In article <14828@mcdphx.phx.mcd.mot.com> hbg6@citek.mcdphx.mot.com writes:
>Please excuse me if this is a FAQ but I'm a real novice at postscript.
>
>Is there some way to make the image on the page come out backwards, like
>a mirror image? I want to print on the 'wrong' side of the transperancy
>film.
>
>I would think there is something I could insert right before the showpage
>that would transform the image, or would you reverse the whole coordinate
>system for the page?

before you start drawing, do this:

8.5 72 mul 0 translate
-1 1 scale

you should be able to edit your ps file and stick it in after the header
comments.

The effect is to multiply all the X coords by negative 1, and leave the
y coords alone, and the translate moves the origin over to the other
side of the page.  If you use some strange page size, you should use it's
width in points instead of 8.5 72 mul.

I just tested this out on the output from dvips, and it works fine.


-- 
Rodney
Technical Details
Message-ID: <b#dg8qa@rpi.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!rodney
References: <14828@mcdphx.phx.mcd.mot.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!rodney
From: rodney@sun.ipl.rpi.edu (Rodney Peck II)
Newsgroups: comp.lang.postscript
Subject: Re: mirror image
Message-ID: <b#dg8qa@rpi.edu>
Date: 10 Apr 91 15:38:28 GMT
References: <14828@mcdphx.phx.mcd.mot.com>
Organization: Rensselaer Polytechnic Institute, Troy NY
Lines: 29
Nntp-Posting-Host: ipl.rpi.edu