Creating the PDF from local HTML file.... Note that we customize the headers and footers!
setHeader('color', 'blue'); $pdf->setFooter('left', "webbservern.se :: $file"); $pdf->setFooter('right', '$D'); $result = $pdf->convert(); // check if the result was an error if (PEAR::isError($result)) { die($result->getMessage()); } else { echo "PDF file created successfully: $result"; echo '
Click here to view the PDF file.'; } ?>