################# landscape image $imagewidth = $imagesize; $imageheight = 0; if ($sheetstyle == "thumbnails") { $topy = $pdf->GetY(); $topx = $pdf->GetX(); if ($config_sheetthumb_include_ref) { $pdf->Cell($imagesize, ($refnumberfontsize + $leading) / 72, $ref, 0, 2, 'L', 0, '', 1); } ##render fields contact_sheet_add_fields($result[$n]); $bottomy = $pdf->GetY(); $bottomx = $pdf->GetX(); #Add image contact_sheet_add_image(); $pdf->SetXY($topx, $topy); $pdf->Cell($cellsize[0], $bottomy - $topy + $imagesize + 0.2, '', 0, 0); } else { if ($sheetstyle == "list") { if ($config_sheetlist_include_ref) { $pdf->SetXY($currentx, $currenty); $pdf->Text($pdf->GetX() + $imagesize + 0.1, $pdf->GetY(), $ref); $deltay = 1; } $pdf->SetXY($currentx, $currenty); #render fields contact_sheet_add_fields($result[$n]); #Add image contact_sheet_add_image(); } else { if ($sheetstyle == "single") {