$pdf->SetSubject('Tutirial de reportes en PDF con PHP y MySQL'); $pdf->SetKeywords('Reporte, usuario, php, mysql'); $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); //set margins $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); $pdf->SetHeaderMargin(PDF_MARGIN_HEADER); $pdf->SetFooterMargin(PDF_MARGIN_FOOTER); //set auto page breaks $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); //set image scale factor $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); //set some language-dependent strings $pdf->setLanguageArray($l); // --------------------------------------------------------- // set default font subsetting mode $pdf->setFontSubsetting(true); $pdf->SetFont('helvetica', '', 9, '', true); // Add a page // This method has several options, check the source code documentation for more information. $pdf->setPrintHeader(false); //no imprime la cabecera ni la linea $pdf->setPrintFooter(true); // imprime el pie ni la linea $pdf->AddPage(); //************* ob_end_clean(); //rompimiento de pagina //************* $html = $objTransaccion->ssql_Rep_PDF($_GET[nSql]); $pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = '', $autopadding = true); $pdf->Output('Reporte de Datos.pdf', 'I');