example3.php File Reference

Go to the source code of this file.

Variables

 $linkToPDFFull = $linkToPDF = tempnam(dirname(__FILE__), 'PDF-')
 $linkToPDF = '.pdf'
 $htmlFile = str_replace('.pdf', '.htm', $linkToPDFFull)
 $defaultDomain = 'www.rustyparts.com'
 $fp = fopen($htmlFile, 'w')
 $pdf = & new HTML_ToPDF($htmlFile, $defaultDomain)
 $result = $pdf->convert()


Variable Documentation

$defaultDomain = 'www.rustyparts.com'
 

Definition at line 25 of file example3.php.

$fp = fopen($htmlFile, 'w')
 

Definition at line 88 of file example3.php.

Referenced by HTML_ToPDF::convert().

$htmlFile = str_replace('.pdf', '.htm', $linkToPDFFull)
 

Definition at line 24 of file example3.php.

$linkToPDF = '.pdf'
 

Definition at line 22 of file example3.php.

$linkToPDFFull = $linkToPDF = tempnam(dirname(__FILE__), 'PDF-')
 

Here we create an encrypted PDF file based on a dynaically generated page. We buffer the content of the page and then create the PDF at the end. Then we load up PDFEncryptor and set meta-data, password, and permissions. Finally, we send a header and the file so it opens straight into the browser.

Definition at line 19 of file example3.php.

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

Definition at line 94 of file example3.php.

$result = $pdf->convert()
 

Definition at line 100 of file example3.php.


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