Name
new( ) — create a new PostScript::Document object
Synopsis
$doc = PostScript::Document->new(paper => $paper,
width => $width,
height => $height,
rmargin => $rmargin,
lmargin => $lmargin,
tmargin => $tmargin,
bmargin => $bmargin
);
This method
instantiates a new object of class PostScript::Document. There are
seven attributes that may be optionally set when a new object is
created; a paper
attribute that can be one of the
valid paper size strings (e.g., Letter, Legal, etc.), the width and
height of the page (in points), and the four margins of the page
(also in points). Note that if you specify the
paper
attribute, you do not have to include the width
and height attributes (and vice versa). The default values are Letter
paper (612 × 792 points) and margins of .5 inches (36 points).
Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.