Hi,
I was looking for a way to convert my php files in pdf. I was working with the fpdf lib and 2 days ago a knew this project. In other forum, I get this code:
<?php
include ("seguridad_04.php");
session_start();
$_SESSION["codigobuscado01"] = $_POST['codigobuscado'];
ob_start();
include('cvtipo2imp.php');
$content_html = ob_get_clean();
// initialisation de HTML2PDF
require_once('./html2pdf/html2pdf.class.php');
try
{
$html2pdf = new HTML2PDF('P','Letter','es', false, 'ISO-8859-15', array(0, 0, 0, 0));
$html2pdf->WriteHTML($content_html, isset($_POST['codigobuscado']));
$html2pdf->createIndex('', 25, 12, false, true, 1);
$html2pdf->Output('cv.pdf');
}
catch(HTML2PDF_exception $e) { echo $e; }
?>
It works, but the output is a web page and we need a pdf document with my own header and footer.
Could you help me?? Thanks