|
PostScript::Columns - Squeeze a text file into multiple columns. |
PostScript::Columns - Squeeze a text file into multiple columns.
use PostScript::ColDoc;
$psdoc= pscolumns(
-margins => [30,20], # NSEW or NS,EW or N,EW,S or N,E,W,S (like CSS)
-headfont => 'NimbusMonL-Bold',
-headsize => 12,
-head => $head,
-font => 'NimbusMonL-Regu',
-size => 10,
-text => $text,
# default font/size for foot:
-foot => "Page \$p of \$pp", # will interpolate later :)
);
# use all defaults, no footer
$doc= pscolumns(
-size => 5,
-head => "Left\nLeft Also\tTest Document\tRight",
-text => $text,
-foot => scalar(localtime)."\tFoot\tPage \$p of \$pp",
);
Creates a PostScript document with a user-defined header and footer, then attempts to squeeze the data into as many columns as possible.
Only the monospace PostScript fonts are available:
NimbusMonL-ReguNimbusMonL-BoldNimbusMonL-ReguObliNimbusMonL-BoldObli
Note: Different printers may require drastically different margins. You'll have to experiment each time you use this module with a new printer.
$p will be replaced by the current page number,
and $pp with the total number of pages.
$p will be replaced by the current page number,
and $pp with the total number of pages.
v, <five@rant.scriptmania.com>
perl(1).
|
PostScript::Columns - Squeeze a text file into multiple columns. |