CREAR UN PDF CON PHP Y HTML ?
require_once(‘tcpdf_include.php’);
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, ‘UTF-8’, false);
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor(‘Nicola Asuni’);
$pdf->SetTitle(‘TCPDF Example 001’);
$pdf->SetSubject(‘TCPDF Tutorial’);
$pdf->SetKeywords(‘TCPDF, PDF, example, test, guide’);
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->AddPage();
// set text shadow effect
ob_start();
?>
texto
$html = ob_get_clean ( ) ;
$pdf -> writeHTML ( $html , true , false , true , false , ” ) ;
$pdf -> Output ( ‘example_001.pdf’ , ‘I’ ) ;
URL DEL PROYECTO http://www.tcpdf.org/