Documentation

CustomFPDI extends Fpdi
in package
uses FpdiTrait

Custom wrapper to add text rotation to FPDI.

Table of Contents

Properties

$angle  : int

Methods

rotate()  : void
Rotates the current drawing context.
startTransform()  : void
Starts a new transformation.
stopTransform()  : void
Stops the current transformation.
_endpage()  : void
Ends the page, resetting any rotation.

Properties

$angle

protected int $angle = 0

Angle for the rotation.

Methods

rotate()

Rotates the current drawing context.

public rotate(float $angle[, float $x = -1 ][, float $y = -1 ]) : void
Parameters
$angle : float

The rotation angle in degrees.

$x : float = -1

The x-coordinate of the rotation center. Default is current x position.

$y : float = -1

The y-coordinate of the rotation center. Default is current y position.

startTransform()

Starts a new transformation.

public startTransform() : void

stopTransform()

Stops the current transformation.

public stopTransform() : void

_endpage()

Ends the page, resetting any rotation.

protected _endpage() : void

        
On this page

Search results