Cell extends Base
in package
Com\Tecnick\Pdf\Cell
Cell PDF data
Tags
Table of Contents
Constants
- BORDERPOS_DEFAULT = 0
- The default relative position of the cell origin when the border is centered on the cell edge.
- BORDERPOS_EXTERNAL = -0.5
- The relative position of the cell origin when the border is external to the cell edge.
- BORDERPOS_INTERNAL = 0.5
- The relative position of the cell origin when the border is internal to the cell edge.
- ZEROCELL = ['margin' => ['T' => 0, 'R' => 0, 'B' => 0, 'L' => 0], 'padding' => ['T' => 0, 'R' => 0, 'B' => 0, 'L' => 0], 'borderpos' => self::BORDERPOS_DEFAULT]
- Default values for cell.
Properties
- $barcode : Barcode
- Barcode object.
- $cache : Cache
- Cache object.
- $color : Pdf
- Color object.
- $encrypt : Encrypt
- Encrypt object.
- $file : File
- File object.
- $font : Stack
- Font object.
- $graph : Draw
- Graph object.
- $image : Import
- Image Import object.
- $page : Page
- Page object.
- $pon : int
- Current PDF object number.
- $uniconv : Convert
- Unicode Convert object.
Methods
- setDefaultCellBorderPos() : void
- Sets the default cell border position.
- setDefaultCellMargin() : void
- Set the default cell margin in user units.
- setDefaultCellPadding() : void
- Set the default cell padding in user units.
- toPoints() : float
- Convert user units to internal points unit.
- toUnit() : float
- Convert internal points to user unit.
- toYPoints() : float
- Convert vertical user value to internal points unit.
- toYUnit() : float
- Convert vertical internal points value to user unit.
Constants
BORDERPOS_DEFAULT
The default relative position of the cell origin when the border is centered on the cell edge.
public mixed BORDERPOS_DEFAULT =
0
BORDERPOS_EXTERNAL
The relative position of the cell origin when the border is external to the cell edge.
public mixed BORDERPOS_EXTERNAL =
-0.5
BORDERPOS_INTERNAL
The relative position of the cell origin when the border is internal to the cell edge.
public mixed BORDERPOS_INTERNAL =
0.5
ZEROCELL
Default values for cell.
public mixed ZEROCELL = ['margin' => ['T' =>
0, 'R' => 0, 'B' => 0, 'L' => 0], 'padding' => ['T'
=> 0, 'R' => 0, 'B' => 0, 'L' => 0], 'borderpos' =>
self::BORDERPOS_DEFAULT]
Tags
Properties
$barcode
Barcode object.
public Barcode $barcode
$cache
Cache object.
public Cache $cache
$color
Color object.
public Pdf $color
$encrypt
Encrypt object.
public Encrypt
$encrypt
$file
File object.
public File $file
$font
Font object.
public Stack $font
$graph
Graph object.
public Draw $graph
$image
Image Import object.
public Import $image
$page
Page object.
public Page $page
$pon
Current PDF object number.
public int $pon = 0
$uniconv
Unicode Convert object.
public Convert $uniconv
Methods
setDefaultCellBorderPos()
Sets the default cell border position.
public setDefaultCellBorderPos(float $borderpos)
: void
Parameters
- $borderpos : float
-
The border position to set: BORDERPOS_DEFAULT BORDERPOS_EXTERNAL BORDERPOS_INTERNAL
setDefaultCellMargin()
Set the default cell margin in user units.
public setDefaultCellMargin(float $top,
float $right,
float $bottom,
float $left)
: void
Parameters
- $top : float
-
Top.
- $right : float
-
Right.
- $bottom : float
-
Bottom.
- $left : float
-
Left.
setDefaultCellPadding()
Set the default cell padding in user units.
public setDefaultCellPadding(float $top,
float $right,
float $bottom,
float $left)
: void
Parameters
- $top : float
-
Top.
- $right : float
-
Right.
- $bottom : float
-
Bottom.
- $left : float
-
Left.
toPoints()
Convert user units to internal points unit.
public toPoints(float $usr)
: float
Parameters
- $usr : float
-
Value to convert.
Return values
floattoUnit()
Convert internal points to user unit.
public toUnit(float $pnt)
: float
Parameters
- $pnt : float
-
Value to convert in user units.
Return values
floattoYPoints()
Convert vertical user value to internal points unit.
public toYPoints(float $usr[,
float $pageh
= -1
]) : float
Note: the internal Y points coordinate starts at the bottom left of the page.
Parameters
- $usr : float
-
Value to convert.
- $pageh : float = -1
-
Optional page height in internal points ($pageh:$this->page->getPage()['pheight']).
Return values
floattoYUnit()
Convert vertical internal points value to user unit.
public toYUnit(float $pnt[,
float $pageh
= -1
]) : float
Note: the internal Y points coordinate starts at the bottom left of the page.
Parameters
- $pnt : float
-
Value to convert.
- $pageh : float = -1
-
Optional page height in internal points ($pageh:$this->page->getPage()['pheight']).