Support Joomla!

references:joomla.framework:document:jdocumentpdf-__construct

Table of Contents

__construct

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Document Class JDocumentPDF Method __construct Reference __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.

Syntax

JDocumentPDF __construct ( $options )

$options array is an associative array of configuration values for this class and for the JDocument class.

Examples

A JDocumentPDF object can be created using the following:

Example

$options = array( 'direction' => 'rtl' );
$pdfDoc =& JDocument::getInstance( 'pdf', $options );

Discussion

Full name:
E-Mail:
 
references/joomla.framework/document/jdocumentpdf-__construct.txt (555 views) · Last modified: 2007/08/15 15:03