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; |
|
} |
Hi,
When using a manual page-break with
$table->addPageBreak()I get the following errorI think the issue is
'new_page'in line 1437 and 1489 should beself::TB_DATA_TYPE_INSERT_NEW_PAGEin Table.phpconstant
pdflib/src/Table.php
Line 24 in 480c76c
addPageBreak()
pdflib/src/Table.php
Lines 745 to 751 in 480c76c
insertNewPage()
pdflib/src/Table.php
Lines 1435 to 1438 in 480c76c
cachePrepOutputData()
pdflib/src/Table.php
Lines 1489 to 1493 in 480c76c