gpatti wrote on Tue, 08 September 2009 10:43 |
In addition to the split of before and afer printing I'd like to suggest an enhancement for the future - to be able (optionally?) to force lines printed before/after $curr_row to be grouped such that a page break does not split them, so they are always printed with their associated row. Do you think this might be feasible?
|
Attached is a new version of 'std.pdf.class.inc' which includes a new function which will return the number of lines remaining on the current page:
$lines_left = $this->pdf->getLinesRemaining();
You can use this to compare against the number of lines required so that you can issue a call to $this->pdf->AddPage() in order to start a new page.