example1.php File Reference

Go to the source code of this file.

Variables

 $htmlFile = dirname(__FILE__) . '/test.html'
 $defaultDomain = 'www.rustyparts.com'
 $pdfFile = dirname(__FILE__) . '/timecard.pdf'
 $pdf = & new HTML_ToPDF($htmlFile, $defaultDomain, $pdfFile)
 $result = $pdf->convert()


Variable Documentation

$defaultDomain = 'www.rustyparts.com'
 

Definition at line 23 of file example1.php.

$htmlFile = dirname(__FILE__) . '/test.html'
 

The simplest example. We convert an HTML file into a PDF file. We also add a few custom headers/footers to the PDF.

Definition at line 19 of file example1.php.

$pdf = & new HTML_ToPDF($htmlFile, $defaultDomain, $pdfFile)
 

Definition at line 30 of file example1.php.

$pdfFile = dirname(__FILE__) . '/timecard.pdf'
 

Definition at line 25 of file example1.php.

$result = $pdf->convert()
 

Definition at line 35 of file example1.php.


Generated on Sat Feb 11 08:43:10 2006 for HTML_ToPDF by  doxygen 1.4.3-20050530