phpdftk API Documentation

Rectangle
in package

FinalYes

Table of Contents

Properties

$height  : float
$width  : float
$x  : float
$y  : float

Methods

__construct()  : mixed
contains()  : bool
expand()  : self
intersect()  : self|null
scale()  : self
toArray()  : array<int, float>
union()  : self

Properties

Methods

__construct()

public __construct(float $x, float $y, float $width, float $height) : mixed
Parameters
$x : float
$y : float
$width : float
$height : float

contains()

public contains(self $other) : bool
Parameters
$other : self
Return values
bool

expand()

public expand(float $margin) : self
Parameters
$margin : float
Return values
self

intersect()

public intersect(self $other) : self|null
Parameters
$other : self
Return values
self|null

scale()

public scale(float $factor) : self
Parameters
$factor : float
Return values
self

toArray()

public toArray() : array<int, float>
Return values
array<int, float>

Returns [llx, lly, urx, ury] as used in PDF boxes

union()

public union(self $other) : self
Parameters
$other : self
Return values
self

        
On this page

Search results