diff --git a/views_pdf_template.php b/views_pdf_template.php index e721c7f..bc369bf 100644 --- a/views_pdf_template.php +++ b/views_pdf_template.php @@ -340,11 +340,16 @@ class PdfTemplate extends FPDI return; } + + // Check to see if the row has content. If it does, render it + if($view->field[$key]->theme($row)) { - $this->SetX($x); - $this->SetY($y); + $this->SetX($x); + $this->SetY($y); - $this->renderRow($x, $y, $row, $options, $view, $key); + $this->renderRow($x, $y, $row, $options, $view, $key); + + } } protected function renderRow($x, $y, $row, $options, &$view = NULL, $key = NULL) {