PDF::Report - A wrapper written for PDF::API2 |
PDF::Report - A wrapper written for PDF::API2
use PDF::Report;
my $pdf = new PDF::Report(%opts);
Creates a new pdf report object. If no %opts are specified the module will use the factory defaults.
Example:
my $pdf = new PDF::Report(PageSize => "letter", PageOrientation => "Landscape");
my $pdf = new PDF::Report(File => $file);
%opts:
PageSize - '4A', '2A', 'A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'A6', '4B', '2B', 'B0', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'LETTER', 'BROADSHEET', 'LEDGER', 'TABLOID', 'LEGAL', 'EXECUTIVE', '36X36'
PageOrientation - 'Portrait', 'Landscape'
wrapText()
wraps $text within $width.
or the rgb-hex-notation:
#rgb, #rrggbb, #rrrgggbbb and #rrrrggggbbbb
or the cmyk-hex-notation:
%cmyk, %ccmmyykk, %cccmmmyyykkk and %ccccmmmmyyyykkkk
and additionally the hsv-hex-notation:
!hsv, !hhssvv, !hhhsssvvv and !hhhhssssvvvv
# Save the document as "file.pdf" my $fileName = "file.pdf"; $pdf->saveAs($fileName);
# Hand the document to the web browser print "Content-type: application/pdf\n\n"; print $pdf->Finish();
Andrew Orr
PDF::Report - A wrapper written for PDF::API2 |