Author image Milan Šorm
and 1 contributors

NAME

Hints - Perl extension for posterizing PostScript

SYNOPSIS

        use PostScript::Poster;

        my $poster = new PostScript::Poster;

        $poster->posterize(-infile => 'a.ps', -outfile => 'b.ps',
                -media => 'a4');

DESCRIPTION

Posterizing PostScript like external program poster. Based on source of Jos T.J. van Eijdnhoven <J.T.J.v.Eijndhoven@ele.tue.nl> poster from The Netherlands from 1999.

THE POSTSCRIPT::POSTER CLASS

new

Constructor create instance of PostScript::Poster class.

        my $poster = new PostScript::Poster;

posterize

Posterize -infile to -outfile according to arguments.

Parameters: -infile input file name -outfile output file name -insize input image size -cutmargin horizontal and vertical cutmargin -whitemargin horizontal and vertical additional white margin -media media paper size -poster output poster size -scale linear scale factor for poster

You must use at least one of -scale, -poster or -media parameters and you can't use -scale and -poster simultaneously. -insize, -media and -poster parameters are box parameter like 'A4', '3x3letter', '10x25cm', '200x200+10,10p' etc. Margins are classic box parameters or percentual number like '200%' etc.

Default values are -media => A4, -cutmargin => 5% and -insize readed from input file.

        $poster->posterize(-infile => 'a.ps', -outfile => 'b.ps',
                -media => 'a4');

VERSION

0.02

AUTHOR

(c) 2001-02 Milan Sorm, sorm@pef.mendelu.cz at Faculty of Economics, Mendel University of Agriculture and Forestry in Brno, Czech Republic.

This module was needed for making SchemaView Plus (svplus).

SEE ALSO

perl(1), svplus(1).