Need Help to align images

The code below gives me a line of images across the full width of pdf print out, how do i change it to have the images in a block of 4 ? for example as it is now

image1, image2, image3, image4

i want

image1, image2
image3, image4

if(count($images) > 1 ){ $thumb_html = ''; $max_count = (count($images) >= 5) ? 5 : count($images); $x = 15; for( $i = 1; $i < $max_count; $i++ ){ if($images[$i]->remote && function_exists('curl_init')) { // this is for pro $thumb_image = $this->curlImage($images[$i]->path.$images[$i]->fname.$images[$i]->type); if(JFile::exists($thumb_image)){ $ext = $this->getExtension($thumb_image); $this->_pdf->Image($thumb_image,$x,112,'',30,$ext); $x = $x + 48; } } else { $thumb_image = $this->folder.$images[$i]->fname.$images[$i]->type; if(JFile::exists($thumb_image)){ $ext = $this->getExtension($thumb_image); $this->_pdf->Image($thumb_image,$x,112,'',30,$ext); $x = $x + 48; } } } $this->_pdf->writeHTMLCell('', 30, 15,112, '', 'T,B');

many thanks for any help received

Kev

Sponsor our Newsletter | Privacy Policy | Terms of Service