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::getTemplateSize()

Description

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

Calculates the height or width of a template.

Parameters

$tplidx

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

$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.