manua has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,

I am working with PDF::API2 and PDF::Table.

I am rotating the page by $page->rotate(90). It rotates the page, but can't find the way to set the table header also being rotated so the table will run landscape like the page. Does anyone has something I can use ? on rotating the table to landscape. Any help in this regard will be highly appreciated.

Thanks.
  • Comment on Table in landscape view with PDF::API2 and PDF::Table

Replies are listed 'Best First'.
Re: Table in landscape view with PDF::API2 and PDF::Table
by Corion (Patriarch) on Feb 14, 2010 at 19:10 UTC
      Hi Corion,

      Thanks for your reply.

      I tried this way, but the new_page_func doesn't seems to be working for me. At this table my table is not too big, it just have soem 100 lines of data but has more coloumns. I want to be displayed in landscape view. I tried,

      new_page_func => sub { my $next_page = $pdf->page; $next_page->rotate(90); return $next_page; },

      This doesn't work for a table with just 2 rows. Please let me know your views on this.

      Thanks

        As I said, I don't know PDF::Table. If you tell me how your code fails for you, maybe I can help you further.