if (DBGetRecordCount($stmt) == 0) { echo utf8_decode("La consulta no devolvio datos."); exit; } //----------------------------------------------------------------------- $pdf->setSourceFile($_SERVER["DOCUMENT_ROOT"] . "/modules/varios/templates/ListadoJuiciosVerticalBlanco.pdf"); $pdf->SetAutoPageBreak(true, 50); $pdf->AddPage('L', 'Legal'); $stmt = DBExecSql($conn, $sql, $params); while ($row = DBGetQuery($stmt, 1, false)) { $pdf->SetTextColor(0, 0, 0); $pdf->SetFontAlignGeneral(); $row = array_slice($row, 1); $Newrow = array_values($row); $pdf->Row($Newrow); $pdf->DibujaLineaSepara(); } } unset($_SESSION['ListadoPersonalExpuesto']); //enviamos cabezales http para no tener problemas header("Content-Transfer-Encoding", "binary"); header('Cache-Control: maxage=3600'); header('Pragma: public'); /* $pdf->AddPage('L', 'Legal'); $pdf->SetFont('Arial','B',16); $pdf->Cell(80,10,'Pritn screen ! '.$UsuarioNombre); */ $pdf->Output(); // DBCommit($conn); } catch (Exception $e) {