🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #4759

"Autoscale" for Postscript ?

#4759
From: Bob Armstrong
Date: Tue, 19 Feb 1991 00:33
22 lines
1237 bytes
  A simple (I hope) question:  Suppose I want to define a Postscript image
that always maps itself onto the full size of the paper, regardless of
the actual paper size ?  For example, if I printed the same Postscript
program on both A sized and C sized paper, both would exactly fill the
page.

  If I could somehow find the actual device size _at runtime_, in either
device space or 1/72nd units, then I could easily set up a transformation
which maps some arbitrarily fixed size world space (say [0..1, 0..1]) onto
the whole page.  Unfortunately I don't see any way to get the page size
at runtime.

  Put another way, I want to define my user space relative to the actual
paper size rather than in absolute inches.

  I realize that this isn't the original intent of Postscript, but surely
there must be some way to do it ??

Thanks,
Bob Armstrong
{sun,decwrl,pyramid}!teda!bob
Technical Details
Message-ID: <20948@teda.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!ames!vsi1!teda!bob

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!ames!vsi1!teda!bob
From: bob@teda.UUCP (Bob Armstrong)
Newsgroups: comp.lang.postscript
Subject: "Autoscale" for Postscript ?
Keywords: scale transformations
Message-ID: <20948@teda.UUCP>
Date: 19 Feb 91 00:33:09 GMT
Lines: 22