RE: Rotateing a table? [SEC=UNCLASSIFIED]

"Arnold Mavromatis" <[email protected]> Thu, 15 Jan 2009 10:56:30 +1100
Newsgroups gmane.comp.lang.perl.modules.pdfapi2
Message-ID <[email protected]>
No need to rotate.
 
Just set the media box length and height to be suitable for landscape
dimensions
 
Cheers
Arn

________________________________

From: [email protected]
[mailto:[email protected]] On Behalf Of faeleanan
Sent: Thursday, 15 January 2009 9:35 AM
To: [email protected]
Subject: [perl-text-pdf-modules] Rotateing a table?



I'm trying to print a table in landscape mode.

I did the following to do so:

my $pdftable = new PDF::Table;
open my $pdf_handle, ">", \my $pdf_data or die $!;
my $pdf = new PDF::API2(-file => $pdf_handle);
my $page = $pdf->page();
$page->rotate(90);
$pdf->mediabox('A3');
#generate the pdf

What I am seeing is that the table is getting printed in portrait mode
and then the whole page is being rotated. I want to rotate the page
THEN print the table. Ideas?