tecnickcom / TCPDF

Official clone of PHP library to generate PDF documents and barcodes
https://tcpdf.org
Other
4.18k stars 1.51k forks source link

checkPageBreak #449

Open pnussbaumer opened 2 years ago

pnussbaumer commented 2 years ago

Hi I write som long lists over more than one page. If there is a new page Iwill write a header-line. I use the function "Cell" for writing the data. I found the function checkPageBreak, but if I use this function in the following way the program stops.

if (pdf->checkPageBreak()) { ......CODE FOR TITLE.... }

What is worng?

It would be great if you can help me.

Best regards Peter

pnussbaumer commented 2 years ago

Is it possible, that this function not work in addition with "AutoPageBreak"?