Getting spacing issues in TCPDF with writeHTML

I am creating a PDF with HTML contents using the writeHTML function of TCPDF. Below is the relevant code:

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: Currently: 1 2 …

tcpdf imagebox and cropping

I would like to add a ‘imagebox’ a box which contains the image and crops exceeding image value that is outside of this box. something like this: I am not sure on how to do this if it’s even possible….