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

site:perlmonks.org PDF::Table landscape points me to Rotating a (PDF:::Table) Page Help!, which seems to have found a solution at the end.

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

Replies are listed 'Best First'.
Re^2: Table in landscape view with PDF::API2 and PDF::Table
by manua (Novice) on Feb 15, 2010 at 07:03 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.

        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.