James Gregory wrote:
Dear SLUG,

I have a ridiculously large postscript file that I'd link to shrink down
to print on an A4 page (mostly for entertainment value admittedly).
What's the easiest way to do this shrinking?

If you wish to reduce the entire page by 2 times add this line:


0.5 0.5 scale

Here is an example pulled from some playing that I did a while ago:
You can see where I have added a "2 2 scale" to double the size.
What is does is to change the scale of the deafult units that the PostScript uses.


%!PS-Adobe-1.0
%%DocumentFonts: (atend)
%%Title: Mikes Test File
%%Creator: Mike Lake
%%CreationDate: Tue Jul 25 21:05:45 EST 2000
%%Pages: (atend)
%%BoundingBox: (atend)
%%EndComments
/Times-Roman findfont 10 scalefont setfont
%%EndProlog
%%Page: 1 1

2 2 scale

%% Defines
/myCircle
{50 0 360 arc stroke} def

%Station positions
10     10 4 0 360 arc stroke
100   100 4 0 360 arc stroke
150   150 2 0 360 arc stroke
175   175 1 0 360 arc stroke
200 200 moveto 250 250 lineto stroke
%Station names
0     0 moveto (tatshawl.5) show
101   163 moveto (tatshawl.9) show
86   175 moveto (tatshawl.end) show
391    66 moveto (tatshawl.lbranch.1) show
295    18 moveto (tatshawl.lbranch.2) show
314    50 moveto (tatshawl.lbranch.5) show
showpage
%%Trailer

%%DocumentFonts: Times-Roman
%%Pages: 1
%%BoundingBox: 0 0 595 842



--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to