Hello,
I installed the classes in my website, in a structure like this:
root
|----index.php
|--scripts
|----html2pdf.class.php
|----parsingHTML.class.php
|----styleHTML.class.php
|----_mypdf
|----|
|----tcpdf_config_html2pdf.php
|----mypdf.class.php
|----_tcpdf
|----|
|----with the files normally contained.
the code to generate PDF is:
ob_start();
include ("printhead.php");
include ($url);
$page = ob_get_contents();
ob_end_clean();
$file = fopen("temp/sample.html", "wt");
$page .= "</body></html>";
fputs ($file, $page);
fclose ($file);
// procesamoe el HTML y convertimos en PDF.
require_once(dirname(__FILE__).'/scripts/html2pdf.class.php');
$html2pdf = new HTML2PDF('P','A4','es');
// $html2pdf->pdf->SetDisplayMode('fullpage');
$html2pdf->WriteHTML($page);
$html2pdf->Output('temp/exemple.pdf');
When I try to convert to PDF the page only throw tie error that I mention in caption.
Any help is welcome.
Thanks in advance.
Sorry by my poor english.