🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #8546

document/figure fitter needed

#8546
From: Seth Teller
Date: Thu, 14 Dec 1989 04:26
27 lines
1146 bytes
apologies in advance if this is a dumb or repeated request.

i have a lot of ps files of the form

%%prologue stuff
%%BoundingBox x y x y
%%more prologue stuff

gsave

... lots of drawing, text, etc, in _arbitrary_ coordinates ...

grestore


that is, they have a valid prologue, but no showpage.  all
coordinates in the file are inside the prologue BBox coords.

i'd like to print these as is, just scaling and translating them to
fit the standard output page, while preserving aspect ratio.

can someone send me code to do this?  it surely has been done before,
and it would save me an hour of hacking.

thanks much ahead of time,

seth teller
Technical Details
Message-ID: <20659@pasteur.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!mailrus!ames!pasteur!miro.Berkeley.EDU!seth

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!mailrus!ames!pasteur!miro.Berkeley.EDU!seth
From: seth@miro.Berkeley.EDU (Seth Teller)
Newsgroups: comp.lang.postscript
Subject: document/figure fitter needed
Message-ID: <20659@pasteur.Berkeley.EDU>
Date: 14 Dec 89 04:26:10 GMT
Sender: news@pasteur.Berkeley.EDU
Reply-To: seth@miro.Berkeley.EDU (Seth Teller)
Distribution: usa
Organization: University of California at Berkeley
Lines: 27