if (!isset($_SESSION['ReportesSiniestros']["ReporteFichaTrabajador"])) {
        header("Location: /JuiciosParteDemandada");
        // CIERRA LA PAGINA
        // echo "<script languaje='javascript' type='text/javascript'>window.close();</script>";
        exit;
    }
    //-------------------------------------------
    $pdf = new PDFReport();
    $pdf->SetTitle("ReporteFichaTrabajador");
    $pdf->SetAuthor("JLovatto");
    $pdf->SetCreator("ReporteFichaTrabajador");
    $pdf->SetSubject("REPORTE WEB LEGALES");
    $pdf->SetAutoPageBreak(true, 20);
    $pdf->AddPage('P', 'A4');
    $pdf->SetTitle('ReporteFichaTrabajador');
    $pdf->HistoricoLaboral();
    unset($_SESSION['ReportesSiniestros']["ReporteFichaTrabajador"]);
    //enviamos cabezales http para no tener problemas
    header('Content-Type: text/html; charset=UTF-8');
    //header('Content-Type: text/html; charset=iso-8859-1');
    header("Content-Transfer-Encoding", "binary");
    //header('Cache-Control: maxage=3600');
    header('Cache-Control: private, max-age=0, must-revalidate');
    header('Pragma: public');
    $pdf->Output();
    // DBCommit($conn);
} catch (Exception $e) {
    DBRollback($conn);
    EscribirLogTxt1("ReporteFichaTrabajador.php", $e->getMessage());
    echo 'ERROR: ' . $e->getMessage();
}