when I start to apply html2pdf to some of my pages I get
theese errors:
Fatal error: Call to undefined method
HTML2FPDF::DisplayPreferences() in C:\Archivos de
programa\Apache Group\Apache2
\htdocs\fpdf\html2fpdf.php on line 155
Notice: Undefined index: s in C:\Archivos de
programa\Apache Group\Apache2
\htdocs\fpdf\html2fpdf.php on line 392
Notice: Undefined variable: e in C:\Archivos de
programa\Apache Group\Apache2
\htdocs\fpdf\html2fpdf.php on line 949
Fatal error: Call to undefined method
HTML2FPDF::SetTextOutline() in C:\Archivos de
programa\Apache Group\Apache2
\htdocs\fpdf\html2fpdf.php on line 2113
whats wrong?????
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
when I start to apply html2pdf to some of my pages I get
theese errors:
Fatal error: Call to undefined method
HTML2FPDF::DisplayPreferences() in C:\Archivos de
programa\Apache Group\Apache2
\htdocs\fpdf\html2fpdf.php on line 155
Notice: Undefined index: s in C:\Archivos de
programa\Apache Group\Apache2
\htdocs\fpdf\html2fpdf.php on line 392
Notice: Undefined variable: e in C:\Archivos de
programa\Apache Group\Apache2
\htdocs\fpdf\html2fpdf.php on line 949
Fatal error: Call to undefined method
HTML2FPDF::SetTextOutline() in C:\Archivos de
programa\Apache Group\Apache2
\htdocs\fpdf\html2fpdf.php on line 2113
whats wrong?????
try this:
<?
require("html2fpdf.php");
$html="
<html>
<title>Welcome</title>
<body>
<table border=\"1\" width=\"650\">
<tr>
<td>
this is a test
</td>
</tr>
</body>
</html>
";
$pdf=new HTML2FPDF();
$pdf->AddPage();
$pdf->WriteHTML($html);
$pdf->Output(); //Outputs on browser screen
?>
save this as test.php and place it into:
\Apache Group\Apache2\htdocs\fpdf\
in the same directory should be the files:
fpdf.php
gif.php
html2fpdf.php
source2doc.php
htmltoolkit.php
and the font directory