Inherits Plugin.

Public Member Functions | |
| ppPDF () | |
| convert ($html, $filename='') | |
| output ($filename='') | |
| set_paper ($size, $orientation='portrait') | |
| _convert_dompdf ($html, $filename) | |
| _convert_prince ($html, $filename) | |
Public Attributes | |
| $fn_pdf | |
| $tempdir | |
| $paper_size = 'letter' | |
| $paper_orientation = 'portrait' | |
PRONTO WEB FRAMEWORK Copyright (C) 2006, Judd Vinet
Description: Convert HTML to PDF using DOMPDF or PrinceXML. You'll need the DOMPDF or Prince libraries in app/extlib/{prince,dompdf}
You should also put this in app/config/config.php:
// set to 'prince' or 'dompdf' define('PDF_BACKEND', 'prince');
Definition at line 18 of file pdf.php.
| ppPDF::_convert_dompdf | ( | $ | html, | |
| $ | filename | |||
| ) |
| ppPDF::_convert_prince | ( | $ | html, | |
| $ | filename | |||
| ) |
| ppPDF::convert | ( | $ | html, | |
| $ | filename = '' | |||
| ) |
Convert HTML into a PDF file.
| string | $html The HTML to convert to PDF | |
| string | $filename If set, resulting PDF file will be stored here. If empty, then a temporary file will be used until output() is called. |
Definition at line 46 of file pdf.php.
References _convert_dompdf(), and _convert_prince().
| ppPDF::output | ( | $ | filename = '' |
) |
| ppPDF::ppPDF | ( | ) |
Definition at line 27 of file pdf.php.
References DS, and Plugin::Plugin().
| ppPDF::set_paper | ( | $ | size, | |
| $ | orientation = 'portrait' | |||
| ) |
1.6.1