Run the transaction, insert the table, check if you are on a new page, if so, roll back and add the page before inserting the table.
VERY IMPORTANT : do not forget that TRUE call rollback:
$this->startTransaction(); $start_page = $this->getPage(); $this->writeHTMLCell( 0, 0, '', '', $html, 0, 1, false, true, 'C' ); $end_page = $this->getPage(); if ($end_page != $start_page) { $this->rollbackTransaction(true);
Hope this helps Michelle
source share