frist row genarate corectlly .
enter image description here
But when it comes 2nd row each image list in next page .
enter image description here
$x=10;
$y=$grandNextY+2;
$width=46;
$height=46;
if($order_files){
foreach ($order_files as $image) {
//https://smarterappliances.co.uk/uploads/orders/82013/6631ffc3c212f.jpeg
$imagePath = base_url('uploads/orders/image.jpg');
$pdf->listImage($imagePath, $x, $y, $width, $height);
$x +=48;
if( $x > 180 ){
$y += 48;
$x=10;
}
}
}
public function listImage($imagePath, $x, $y, $width, $height){
$this->Image($imagePath, $x, $y, $width, $height);
}
I need 2nd row make same as 1st row.