Skip to content
Advertisement

TCPDF – loop data in two columns layout

Im using TCPDF, at the moment im a listing data in two columns using array_chunk which works fine. But i need data to be show in first columns and then second, see below:

JavaScript

This is the code:

JavaScript

my second query(complex) if there are more than 30 rows i need to be able to use $pdf->AddPage(); and continues on the next page.

Advertisement

Answer

TCPDF – support multicolumns, this is wat i used to solve my issue:

JavaScript

the code will add auto page break and continues to next page.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement