The problem is simple, look the screenshot in attach. When the table arrive to bottom of page, without exceeding the page, tcpdf add a page not need. $row=''; for($i=0; $i<99; $i++){ $row .= ' Contract number '.$i.' Contract type Document date Page '; } $tbl = '<style> td{ padding: 3px; border: 1px solid #0e2b57; border-collapse: collapse; font-size:6pt; font-family: '.$avenirFontRegular.'; color:#0e2b57; } th{ font-weight:bold; background-color:#0e2b57; border: 1px solid #0e2b57; border-collapse:...