| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Document |
JDocumentPDF |
__construct |
__construct() |
Never | Work in Progress |
JDocumentPDF class constructor.
The constructor should be invoked via the JDocument::getInstance() method.
The $options parameter can be used to setup the PDF configuration. This class recognizes the following parameters:
| Parameter | Default Value |
| margin-header | 5 |
| margin-footer | 10 |
| margin-top | 27 |
| margin-bottom | 25 |
| margin-left | 15 |
| margin-right | 15 |
| image-scale | 4 |
Please see JDocument for information on parameters associated with the JDocument class.
JDocumentPDF __construct ( $options )
| $options | array | is an associative array of configuration values for this class and for the JDocument class. |
A JDocumentPDF object can be created using the following:
Example
$options = array( 'direction' => 'rtl' ); $pdfDoc =& JDocument::getInstance( 'pdf', $options );