Here is the relevant part of the documentation:
($end_page, $pages_spanned, $table_bot_y) = $pdftable->table( $pdf, # A PDF::API2 instance $page_to_start_on, # A PDF::API2:
age instance created with $page_to_start_on = $pdf->page; $data, # 2D arrayref of text strings x => $left_edge_of_table, #X - coordinate of upper left corner w => 570, # width of table. start_y => $initial_y_position_on_first_page, next_y => $initial_y_position_on_every_new_page, start_h => $table_height_on_first_page, next_h => $table_height_on_every_new_page, ....
}
Notice the specification of the meaning of next_y!
Here is what I have in my code:
($end_page, $pages_spanned, $table_bot_y) = $pdftable->table( $pdf, $page, \@table2, x=>$x, w=>555, start_y=>$y, next_y=>$900, start_h=> 250, next_h=>500, # optional parameters padding =>2, header_props=>$hdr_props, column_props=>$col_propsM2, );
No matter what values I give next_y or next_h, the continuation of the table on the second page is ALWAYS placed in the middle of the page.
What I would really like to happen is to always have the continuation of the table start at the top of the next page and to fill the page if there is sufficient data. However, I have yet to find the magic required to make that happen in the documentation for PDF::Table (the package I am using for this).
Can anyone tell me either what I missed (is there relevant information elsewhere than the man page for PDF::Table) or how I might fix or work around this?
Thanks
Ted
($end_page, $pages_spanned, $table_bot_y) = $pdftable->table( $pdf, # A PDF::API2 instance $page_to_start_on, # A PDF::API2:
}
Notice the specification of the meaning of next_y!
Here is what I have in my code:
($end_page, $pages_spanned, $table_bot_y) = $pdftable->table( $pdf, $page, \@table2, x=>$x, w=>555, start_y=>$y, next_y=>$900, start_h=> 250, next_h=>500, # optional parameters padding =>2, header_props=>$hdr_props, column_props=>$col_propsM2, );
No matter what values I give next_y or next_h, the continuation of the table on the second page is ALWAYS placed in the middle of the page.
What I would really like to happen is to always have the continuation of the table start at the top of the next page and to fill the page if there is sufficient data. However, I have yet to find the magic required to make that happen in the documentation for PDF::Table (the package I am using for this).
Can anyone tell me either what I missed (is there relevant information elsewhere than the man page for PDF::Table) or how I might fix or work around this?
Thanks
Ted