in reply to Re: Table in landscape view with PDF::API2 and PDF::Table
in thread Table in landscape view with PDF::API2 and PDF::Table

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
  • Comment on Re^2: Table in landscape view with PDF::API2 and PDF::Table

Replies are listed 'Best First'.
Re^3: Table in landscape view with PDF::API2 and PDF::Table
by Corion (Patriarch) on Feb 15, 2010 at 08:16 UTC

    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.

      I have created a page with PDF::API2 and have rotated that page by 90. I want to draw my table in hte landscape view on this page. But in actual, when I rotate the page the axis of page remains same and the table is created in the potrait form only. I want that with the change in page orientation the axes of the page should also change and accordingly the table and other stuff, should teke the new/modified coordinates.

        You don't show any code that I could run. How do you expect me to identify potential problems in your program?