setasign\Fpdi
FpdfTrait This trait is used for the implementation of FPDI in FPDF and tFPDF.
File: /FPDI v2/FpdfTrait.php
Used in
Summary
Methods
_putimages()
Exceptions
Throws PdfParser\CrossReference\CrossReferenceException
Throws PdfParser\PdfParserException
getTemplateSize()
Get the size of an imported page or template.
Give only one of the size parameters (width, height) to calculate the other one automatically in view to the aspect ratio.
Parameters
- $tpl : mixed
The template id
- $width : float|int|null
The width.
- $height : float|int|null
The height.
Return Values
An array with following keys: width, height, 0 (=width), 1 (=height), orientation (L or P)
useTemplate()
Draws an imported page or a template onto the page or another template.
Give only one of the size parameters (width, height) to calculate the other one automatically in view to the aspect ratio.
Parameters
- $tpl : mixed
The template id
- $x : float|int|array
The abscissa of upper-left corner. Alternatively you could use an assoc array with the keys "x", "y", "width", "height", "adjustPageSize".
- $y : float|int
The ordinate of upper-left corner.
- $width : float|int|null
The width.
- $height : float|int|null
The height.
- $adjustPageSize : bool
Return Values
The size