PageMargins
in package
Table of Contents
Properties
- $bottom : float
- Bottom.
- $footer : float
- Footer.
- $header : float
- Header.
- $left : float
- Left.
- $right : float
- Right.
- $top : float
- Top.
Methods
- __construct() : mixed
- Create a new PageMargins.
- fromCentimeters() : float
- fromMillimeters() : float
- fromPoints() : float
- getBottom() : float
- Get Bottom.
- getFooter() : float
- Get Footer.
- getHeader() : float
- Get Header.
- getLeft() : float
- Get Left.
- getRight() : float
- Get Right.
- getTop() : float
- Get Top.
- setBottom() : $this
- Set Bottom.
- setFooter() : $this
- Set Footer.
- setHeader() : $this
- Set Header.
- setLeft() : $this
- Set Left.
- setRight() : $this
- Set Right.
- setTop() : $this
- Set Top.
- toCentimeters() : float
- toMillimeters() : float
- toPoints() : float
Properties
$bottom
Bottom.
private
float
$bottom
= 0.75
$footer
Footer.
private
float
$footer
= 0.3
$header
Header.
private
float
$header
= 0.3
$left
Left.
private
float
$left
= 0.7
$right
Right.
private
float
$right
= 0.7
$top
Top.
private
float
$top
= 0.75
Methods
__construct()
Create a new PageMargins.
public
__construct() : mixed
fromCentimeters()
public
static fromCentimeters(float $value) : float
Parameters
- $value : float
Return values
floatfromMillimeters()
public
static fromMillimeters(float $value) : float
Parameters
- $value : float
Return values
floatfromPoints()
public
static fromPoints(float $value) : float
Parameters
- $value : float
Return values
floatgetBottom()
Get Bottom.
public
getBottom() : float
Return values
floatgetFooter()
Get Footer.
public
getFooter() : float
Return values
floatgetHeader()
Get Header.
public
getHeader() : float
Return values
floatgetLeft()
Get Left.
public
getLeft() : float
Return values
floatgetRight()
Get Right.
public
getRight() : float
Return values
floatgetTop()
Get Top.
public
getTop() : float
Return values
floatsetBottom()
Set Bottom.
public
setBottom(float $bottom) : $this
Parameters
- $bottom : float
Return values
$thissetFooter()
Set Footer.
public
setFooter(float $footer) : $this
Parameters
- $footer : float
Return values
$thissetHeader()
Set Header.
public
setHeader(float $header) : $this
Parameters
- $header : float
Return values
$thissetLeft()
Set Left.
public
setLeft(float $left) : $this
Parameters
- $left : float
Return values
$thissetRight()
Set Right.
public
setRight(float $right) : $this
Parameters
- $right : float
Return values
$thissetTop()
Set Top.
public
setTop(float $top) : $this
Parameters
- $top : float
Return values
$thistoCentimeters()
public
static toCentimeters(float $value) : float
Parameters
- $value : float
Return values
floattoMillimeters()
public
static toMillimeters(float $value) : float
Parameters
- $value : float
Return values
floattoPoints()
public
static toPoints(float $value) : float
Parameters
- $value : float