TCPDF::printTemplate( $id,  $x = '',  $y = '',  $w,  $h,  $align = '',  $palign = '',  $fitonpage = false )

Print an XObject Template.


Description Description

You can print an XObject Template inside the currently opened Template. An XObject Template is a PDF block that is a self-contained description of any sequence of graphics objects (including path objects, text objects, and sampled images). An XObject Template may be painted multiple times, either on several pages or at several locations on the same page and produces the same results each time, subject only to the graphics state at the time it is invoked.

See also See also


Top ↑

Parameters Parameters

$id

(Required) (string) The ID of XObject Template to print.

$x

(Optional) (int) X position in user units (empty string = current x position)

Default value: ''

$y

(Optional) (int) Y position in user units (empty string = current y position)

Default value: ''

$w

(Required) (int) Width in user units (zero = remaining page width)

$h

(Required) (int) Height in user units (zero = remaining page height)

$align

(Optional) (string) Indicates the alignment of the pointer next to template insertion relative to template height. The value can be:<ul><li>T: top-right for LTR or top-left for RTL</li><li>M: middle-right for LTR or middle-left for RTL</li><li>B: bottom-right for LTR or bottom-left for RTL</li><li>N: next line</li></ul>

Default value: ''

$palign

(Optional) (string) Allows to center or align the template on the current line. Possible values are:<ul><li>L : left align</li><li>C : center</li><li>R : right align</li><li>'' : empty string : left for LTR or right for RTL</li></ul>

Default value: ''

$fitonpage

(Optional) (boolean) If true the template is resized to not exceed page dimensions.

Default value: false


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
5.8.017 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.