====== __construct ====== {#JAPI Joomla.Framework Document JDocumentPDF::__construct #} JDocumentPDF class constructor. The constructor should be invoked via the [[references:joomla.framework:document:jdocument-getinstance|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 [[references:joomla.framework:document:jdocument|JDocument]] for information on parameters associated with the JDocument class. ===== Syntax ===== JDocumentPDF __construct ( **$options** ) | **$options** | array | is an associative array of configuration values for this class and for the [[jdocument|JDocument]] class. | ===== Examples ===== A JDocumentPDF object can be created using the following: $options = array( 'direction' => 'rtl' ); $pdfDoc =& JDocument::getInstance( 'pdf', $options ); ---- ~~DISCUSSION~~