Manuals

 

Info

FPDF_TPL is FREE!

If you find FPDF_TPL useful and want to encourage development or express your appreciation you can donate via PayPal.

donate via PayPal


FPDF_TPL::useTemplate()

Description

class FPDF_TPL extends FPDF {
array useTemplate ( integer $tplidx[, float $x[, float $y[, float $w[, float $h]]]] ) }

If an optional parameter is null, the information of the template are used.

All parameters are expressed in user unit.

If only one explicit dimension is given, the other is calculated automatically so that the original proportions are kept. For internal calculation getTemplateSize() is used.

Parameters

$tplidx

A valid id of template returned from beginTemplate() or endTemplate()

$x

Abscissa of the upper-left corner.

$y

Ordinate of the upper-left corner.

$w

Width of the template in the page. If not specified or equal to zero, it is automatically calculated.

$h

Height of the template in the page. If not specified or equal to zero, it is automatically calculated.

Return Values

Array with w(idth) and h(eight) of the template. (See getTemplateSize())