public function checkFooter(TcTable $table, $row, $rowIndex) {
        $pdf = $table->getPdf();
        if ($rowIndex == $this->count - 1 && $pdf->GetY() + $this->height >= $this->pageBreakTrigger) {
            if ($table->trigger(TcTable::EV_PAGE_ADD, [$this->rows, $rowIndex, true]) !== false) {
                $pdf->AddPage();
                $table->trigger(TcTable::EV_PAGE_ADDED, [$this->rows, $rowIndex, true]);
            }
        }
    }