[Bug-gs] Postscript question
Ray Johnston
ray@artifex.com
Wed, 01 Aug 2001 08:31:58 -0700
Dear Mark,
First please note that the bug-gs@ghostscript.com is a public mailing
list that anyone can subscribe to. Also all messages are retained in
a publically accessible archive. I make this comment in the light of
your 'confidentiality' statement that is attached following your
signature.
Rotating PostScript is easy, but be aware that the contents of some
PostScript files can 'undo' a translation. The rotation involves
a 'translate' to move the origin, followed by a 'rotate'. The
basic sequence to rotate by 180 degrees (assuming Level 2 and
assuming that page margins are symmetric:
currentpagedevice /PageSize get aload pop translate
180 rotate
The first line moves the origin to the upper left corner of the page.
The second line does the rotate.
Note that you may need to put this in as the /Install procedure so
that if the PostScript sets the page size, the rotation will still
be used. To do this, use:
<< /Install {
currentpagedevice /PageSize get
aload pop translate
180 rotate
} >> setpagedevice
I recommend that you download the PostScript Language Reference
Manual from:
http://partners.adobe.com/asn/developer/technotes.html
This will allow you to study the above PostScript to see what I've
done and then make any other changes or improvements that you may
need.
This is more of an answer than we usually give free users, but I
figured this way I would have the message captured in my 'Sent'
mail for the next time someone asks.
Regards,
Ray Johnston
Artifex Software Inc.
___________________________________________________________________
> Mark Mirodin wrote:
>
> Hello to everybody.
> I need help in postscript language.
> I have postscript file. It includes text and images.
> What should I add to the postscript file to rotate its content by 180 degrees ?
> Thanks & Have a nice day.
> Mark.
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
>
> www.mimesweeper.com
> **********************************************************************