$pdf->SetFont('Arial', '', 8);
 $pdf->cell(33, $altura, db_formatar($areaterreno + 0, 'f', ' ', ' ', ' ', 5) . ($tipo == "urbano" ? 'm2' : 'ha'), 1, 0, "R", 0);
 $areaterrenomat = split('\\.', $areatran);
 $pdf->cell(33, $altura, count($areaterrenomat) == 1 ? db_formatar($areatran, 'f', ' ', ' ', ' ', 5) . ($tipo == "urbano" ? 'm2' : 'ha') : (strlen($areaterrenomat[1]) > 2 ? $areatran : db_formatar($areatran, 'f', ' ', ' ', ' ', 5) . ($tipo == "urbano" ? 'm2' : 'ha')), 1, 1, "R", 0);
 $pdf->SetFont('Arial', 'B', 7);
 $pdf->cell(22, $altura, 'Construção(ções)', 1, 0, "L", 1);
 $pdf->SetFont('Arial', '', 8);
 @($areaedificadamat = split('\\.', @$areatotal));
 @$pdf->cell(33, @$altura, @$areatotal == 0 ? '' : (count(@$areaedificadamat) == 1 ? db_formatar(@$areatotal, 'f', ' ', ' ', ' ', 5) . 'm2' : (strlen(@$areaedificadamat[1]) > 2 ? db_formatar(@$areatotal, 'f', ' ', ' ', ' ', 5) . 'm2' : db_formatar(@$areatotal, 'f', ' ', ' ', ' ', 5) . 'm2')), 1, 0, "R", 0);
 @$pdf->cell(33, @$altura, @$areatotal == 0 ? '' : (count(@$areaedificadamat) == 1 ? db_formatar(@$areatrans, 'f', ' ', ' ', ' ', 5) . 'm2' : (strlen(@$areaedificadamat[1]) > 2 ? db_formatar(@$areatrans, 'f', ' ', ' ', ' ', 5) . 'm2' : db_formatar(@$areatrans, 'f', ' ', ' ', ' ', 5) . 'm2')), 1, 1, "R", 0);
 //   $pdf->cell(33,$altura,(isset($areatotal)?db_formatar($areatotal,'f',' ',' ',' ',5):"").'m2',1,0,"R",0);
 //   $pdf->cell(33,$altura,($areatrans == 0?'':db_formatar($areatrans,'f',' ',' ',' ',5).'m2'),1,1,"R",0);
 //   $pdf->cell(33,$altura,(count($areaterrenomat)==1?db_formatar($areatrans,'f',' ',' ',' ',5).'m2':(strlen($areaterrenomat[1])>2?$areatrans:db_formatar($areatrans,'f',' ',' ',' ',5).($tipo=="urbano"?'m2':'ha'))),1,1,"R",0);
 if ($tipo == "rural") {
     $pdf->SetFont('Arial', 'B', 6);
     $result = $clitbiruralcaract->sql_record($clitbiruralcaract->sql_query($itbi, "", "*", "j31_codigo"));
     if ($clitbiruralcaract->numrows > 0) {
         $pula = 0;
         for ($ru = 0; $ru < $clitbiruralcaract->numrows; $ru++) {
             db_fieldsmemory($result, $ru);
             if ($ru == 2 || $ru == 5) {
                 $pula = 1;
             } else {
                 $pula = 0;
             }
             $pdf->SetFont('Arial', 'B', 6);
             $pdf->cell(23, $altura, $j31_descr, 1, 0, "L", 1);
             $pdf->SetFont('Arial', '', 6);
             $pdf->cell(6.33, $altura, $it19_valor . "%", 1, $pula, "R", 0);
         }
         $pdf->SetFont('Arial', 'B', 7);