TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [TCLUG:11173] PostScript Question...
There is a device-dependent level 1 PS op that will do this: setpageparams.
It may or may not be supported by your interpreter, but give it a shot:
statusdict begin 792 612 0 1 setpageparams end
will set the image region to 11 x 8.5 inches (72 points/inch) . The 4th arg
(0/1) controls landscape/portrait orientation.
Note that if you're putting this into PS created by some driver, your device
coordinate system may have been changed from the native 72 point/inch, and
also that this operator could be overridden or otherwise nullified by later
code. PostScript written by a driver is not intended to be clear (that's an
understatement) so it's often hard to tell.
Phil Plumbo
Printware
> Is there a way to make the orientation of the page a part of the
>posrtscript definition. That way, the image that appears in gv as landscape
>by default, will appear as landscape in PDF as well.
>
> Thanks,
>
> Mark
>
>> Have fun (if at all possible),
>> --
>> Its name is Public Opinion. It is held in reverence. It settles
>> everything.
>> Some think it is the voice of God. Loyalty to petrified opinion never yet
>> broke a chain or freed a human soul. ---Mark Twain
>> -- Eric Hopper (hopper@omnifarious.mn.org
>> http://ehopper-host105.dsl.visi.com/~hopper) --
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tclug-list-unsubscribe@mn-linux.org
>For additional commands, e-mail: tclug-list-help@mn-linux.org
>
>