setasign\Fpdi\PdfReader\DataStructure

Rectangle Class representing a rectangle

File: /FPDI v2/PdfReader/DataStructure/Rectangle.php

Class hierarchy

Summary

Properties

$llx

protected int|float setasign\Fpdi\PdfReader\DataStructure\Rectangle::$llx

$lly

protected int|float setasign\Fpdi\PdfReader\DataStructure\Rectangle::$lly

$urx

protected int|float setasign\Fpdi\PdfReader\DataStructure\Rectangle::$urx

$ury

protected int|float setasign\Fpdi\PdfReader\DataStructure\Rectangle::$ury


Static Methods

byPdfArray()

Create a rectangle instance by a PdfArray.

Parameters
$array : \setasign\Fpdi\PdfParser\Type\PdfArray|mixed
 
$parser : \setasign\Fpdi\PdfParser\PdfParser
 

Methods

__construct()

public Rectangle::__construct (
float|int $ax, float|int $ay, float|int $bx, float|int $by
)

Rectangle constructor.

Parameters
$ax : float|int
 
$ay : float|int
 
$bx : float|int
 
$by : float|int
 

getHeight()

public Rectangle::getHeight (
void
): float|int

Get the height of the rectangle.

getLlx()

public Rectangle::getLlx (
void
): float|int

Get the lower left abscissa.

getLly()

public Rectangle::getLly (
void
): float|int

Get the lower left ordinate.

getUrx()

public Rectangle::getUrx (
void
): float|int

Get the upper right abscissa.

getUry()

public Rectangle::getUry (
void
): float|int

Get the upper right ordinate.

getWidth()

public Rectangle::getWidth (
void
): float|int

Get the width of the rectangle.

toArray()

public Rectangle::toArray (
void
): array

Get the rectangle as an array.

toPdfArray()

Get the rectangle as a PdfArray.