Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Landscape Image File

0 views
Skip to first unread message

generic guest account

unread,
Dec 20, 1990, 4:35:00 PM12/20/90
to
I have a PostScript file of a color image that I would like to have
printed in landscape format instead of portrait format. It currently
prints in portrait format without problems. To change to landscape, I
inserted the following at the top of the file after Initgraphics:

90 rotate
0 -8.5 inch translate

Unfortunately, after making this change, nothing comes out of the printer.

Any ideas on what I am doing wrong?

Please reply to me at: j...@techctr.deere.com
or follow up with another post.

Thanks.

John

The version that works looks like:

initgraphics

/rstr 585 string def
/gstr 585 string def
/bstr 585 string def

45.000000 567.000000 translate
702.000000 -522.000000 scale
1.000000 1.000000 scale
585 435 8
[585 0 0 -435 0 435]
{currentfile rstr readhexstring pop} %read red data from file

{currentfile gstr readhexstring pop} %read green data from file

{currentfile bstr readhexstring pop} %blue red data from file

true 3
colorimage

ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff


etc, etc, etc

Mark Zellers

unread,
Dec 21, 1990, 1:38:07 PM12/21/90
to
In article <5...@deere.com> gen...@deere.com (generic guest account) writes:
>To change to landscape, I
>inserted the following at the top of the file after Initgraphics:
>
>90 rotate
>0 -8.5 inch translate
>
The most likely reason for your problem is that "inch" is not a valid
PostScript operator. Either define inch as:
/inch {72 mul} bind def

before using it or, just use:

90 rotate
0 -8.5 72 mul inch translate

Mark H. Zellers
decwrl.dec.com!voltaire!bwayne!mark

Glenn Reid

unread,
Dec 23, 1990, 2:21:55 PM12/23/90
to
In article <5...@deere.com> gen...@deere.com (generic guest account) writes:
| To change to landscape, I
|inserted the following at the top of the file after Initgraphics:
|
|90 rotate
|0 -8.5 inch translate
|
|Any ideas on what I am doing wrong?

There is no such thing as "inch".

Try just this:

90 rotate
0 -612 translate

--
Glenn Reid RightBrain Software
gl...@heaven.woodside.ca.us PostScript/NeXT developers
..{adobe,next}!heaven!glenn 415-851-1785

0 new messages