} ?> </div> <?php $ReporteANP = new reporteinformacionanp(); $ReporteANP->anpid = $anpid; $ReporteANP->axo_poa = $axo_poa; switch ($rep) { case '1': $ReporteANP->reporte_caratula_anp($row); break; case '2': $ReporteANP->reporte_infomacion_poa($row); break; case '3': $ReporteANP->reporte_desarollo_programatico(); break; } ?> </body> </html> <?php if ($_GET[pdf] == 'ok') { $htmlbuffer = ob_get_contents(); ob_end_clean(); header("Content-type: application/pdf"); $pdf = new HTML2FPDF(); $pdf->ubic_css = "../../style.css"; //agreg mio $pdf->DisplayPreferences('HideWindowUI'); $pdf->AddPage();