
Postscript Example
•%!
%% Draws a one square inch box and
inch in from the bottom left
/inch {72 mul}
def %
Convert inches->points (1/72inch)
newpath % Start a new path
2 inch 2 inch
moveto % 2
inches in from the lower left
3 inch 2 inch
lineto %
bottom side
3 inch 3 inch
lineto %
right side
closepath
% Automatically close
path
fill
% Fill the defined shape
showpage
% We're done... eject the
page
http://www.rddvs.com/postscript.html