Hi,
When using a manual page-break with $table->addPageBreak() I get the following error
Call to a member function getSkipped() on null in /vendor/evosys21/pdflib/src/Table.php@1506
I think the issue is 'new_page' in line 1437 and 1489 should be self::TB_DATA_TYPE_INSERT_NEW_PAGE in Table.php
constant
|
const TB_DATA_TYPE_INSERT_NEW_PAGE = 'insert_new_page'; |
addPageBreak()
|
public function addPageBreak() |
|
{ |
|
$this->dataCache[] = array( |
|
'HEIGHT' => 0, |
|
'DATATYPE' => self::TB_DATA_TYPE_INSERT_NEW_PAGE |
|
); |
|
} |
insertNewPage()
|
$aDC[$index + $shift] = array( |
|
'HEIGHT' => 0, |
|
'DATATYPE' => 'new_page' |
|
); |
cachePrepOutputData()
|
if ($val['DATATYPE'] == 'new_page') { |
|
//add a new page |
|
$this->addPage(); |
|
continue; |
|
} |