Class Tecnick
PDF renderer based on the Tecnick PDF library version 5.8.
The TCPDF library internally changes the multi-byte character strings extension internal encoding to ASCII during the lifetime of a TCPDF object. Therefore several character sets may not work correctly until all instances of this class have their destructors called.
- TCPDF
- Core\PDF\Tecnick
Package: Core\PDF\Tecnick
Since: 3.0
Requires: PHP 5.3
Version: 1.0
Located at PDF/Tecnick.inc.php
Methods summary
public
|
#
__construct( string $orientation = self::PortraitOrientation, string $unit = self::MillimetersUnit, string $paperFormat = self::IsoA4Paper, boolean $diskCache = false )
Initialises a new Tecnick PDF renderer instance. Header and footer are disabled per default. |
public
|
|
public
|
#
cellAutoTruncate( integer|float $width, integer|float $height = 0, string $text = '', mixed $borderFormat = 0, integer $lineBreak = 0, string $align = '', boolean $fill = false, mixed $link = '', integer $characterStretch = 0, boolean $ignoreMinHeight = false, string $truncationMarker = '...' )
Adds a single-line text cell to the document that is automatically truncated if the contents exceed the given cell width. |
protected
float
|
|
public
|
#
error( string $message )
Replaces the standard TCPDF die() call by a more dynamic exception. This also enables the use of backtraces and exception handlers. Note that for debugging purposes, the changed implementation does not reset the TCPDF internal variables (which would be lost otherwise). |
public
|
#
imageFromString( string & $imageData, float|mixed $x = '', float|mixed $y = '', float|integer $width = 0, float|integer $height = 0, string $type = '', mixed $link = '', string $align = '', mixed $resize = false, integer $dpi = 300, string $pageAlign = '', boolean $isMask = false, mixed $imageMask = false, mixed $border = 0, boolean $fitBox = false, boolean $hidden = false )
Embeds an image from a binary image data string. |
public
string
|
|
public
|
#
rectTo( float $width, float $height, string $style = '', array $borderStyle = array (), array $fillColor = array () )
Draws a rectangle, starting from the current internal pointer position. |
protected
float
|
|
public
|
#
roundedRectTo( float $width, float $height, float $radius, string $roundedCorners = '1111', string $style = '', array $borderStyle = array (), array $fillColor = array () )
Draws a rounded rectangle, starting from the current internal pointer position. |
public
|
#
setPageFormat( mixed $format, string $orientation = self::PortraitOrientation )
Sets the page format and orientation. |
Constants summary
string |
Iso4A0Paper
ISO 4A0 paper size. |
#
'4A0'
|
string |
Iso2A0Paper
ISO 2A0 paper size. |
#
'2A0'
|
string |
IsoA0Paper
ISO A0 paper size. |
#
'A0'
|
string |
IsoA1Paper
ISO A1 paper size. |
#
'A1'
|
string |
IsoA2Paper
ISO A2 paper size. |
#
'A2'
|
string |
IsoA3Paper
ISO A3 paper size. |
#
'A3'
|
string |
IsoA4Paper
ISO A4 paper size. |
#
'A4'
|
string |
IsoA5Paper
ISO A5 paper size. |
#
'A5'
|
string |
IsoA6Paper
ISO A6 paper size. |
#
'A6'
|
string |
IsoA7Paper
ISO A7 paper size. |
#
'A7'
|
string |
IsoA8Paper
ISO A8 paper size. |
#
'A8'
|
string |
IsoA9Paper
ISO A9 paper size. |
#
'A9'
|
string |
IsoA10Paper
ISO A10 paper size. |
#
'A10'
|
string |
IsoB0Paper
ISO B0 paper size. |
#
'B0'
|
string |
IsoB1Paper
ISO B1 paper size. |
#
'B1'
|
string |
IsoB2Paper
ISO B2 paper size. |
#
'B2'
|
string |
IsoB3Paper
ISO B3 paper size. |
#
'B3'
|
string |
IsoB4Paper
ISO B4 paper size. |
#
'B4'
|
string |
IsoB5Paper
ISO B5 paper size. |
#
'B5'
|
string |
IsoB6Paper
ISO B6 paper size. |
#
'B6'
|
string |
IsoB7Paper
ISO B7 paper size. |
#
'B7'
|
string |
IsoB8Paper
ISO B8 paper size. |
#
'B8'
|
string |
IsoB9Paper
ISO B9 paper size. |
#
'B9'
|
string |
IsoB10Paper
ISO B10 paper size. |
#
'B10'
|
string |
IsoC0Paper
ISO C0 paper size. |
#
'C0'
|
string |
IsoC1Paper
ISO C1 paper size. |
#
'C1'
|
string |
IsoC2Paper
ISO C2 paper size. |
#
'C2'
|
string |
IsoC3Paper
ISO C3 paper size. |
#
'C3'
|
string |
IsoC4Paper
ISO C4 paper size. |
#
'C4'
|
string |
IsoC5Paper
ISO C5 paper size. |
#
'C5'
|
string |
IsoC6Paper
ISO C6 paper size. |
#
'C6'
|
string |
IsoC7Paper
ISO C7 paper size. |
#
'C7'
|
string |
IsoC8Paper
ISO C8 paper size. |
#
'C8'
|
string |
IsoC9Paper
ISO C9 paper size. |
#
'C9'
|
string |
IsoC10Paper
ISO C10 paper size. |
#
'C10'
|
string |
IsoRA0Paper
ISO RA0 paper size. |
#
'RA0'
|
string |
IsoRA1Paper
ISO RA1 paper size. |
#
'RA1'
|
string |
IsoRA2Paper
ISO RA2 paper size. |
#
'RA2'
|
string |
IsoRA3Paper
ISO RA3 paper size. |
#
'RA3'
|
string |
IsoRA4Paper
ISO RA4 paper size. |
#
'RA4'
|
string |
IsoSRA0Paper
ISO SRA0 paper size. |
#
'SRA0'
|
string |
IsoSRA1Paper
ISO SRA1 paper size. |
#
'SRA1'
|
string |
IsoSRA2Paper
ISO SRA2 paper size. |
#
'SRA2'
|
string |
IsoSRA3Paper
ISO SRA3 paper size. |
#
'SRA3'
|
string |
IsoSRA4Paper
ISO SRA4 paper size. |
#
'SRA4'
|
string |
JisB0Paper
JIS B0 paper size. |
#
'JB0'
|
string |
JisB1Paper
JIS B1 paper size. |
#
'JB1'
|
string |
JisB2Paper
JIS B2 paper size. |
#
'JB2'
|
string |
JisB3Paper
JIS B3 paper size. |
#
'JB3'
|
string |
JisB4Paper
JIS B4 paper size. |
#
'JB4'
|
string |
JisB5Paper
JIS B5 paper size. |
#
'JB5'
|
string |
JisB6Paper
JIS B6 paper size. |
#
'JB6'
|
string |
JisB7Paper
JIS B7 paper size. |
#
'JB7'
|
string |
JisB8Paper
JIS B8 paper size. |
#
'JB8'
|
string |
JisB9Paper
JIS B9 paper size. |
#
'JB9'
|
string |
JisB10Paper
JIS B10 paper size. |
#
'JB10'
|
string |
Kai8Paper
KAI 8 paper size. |
#
'KAI8'
|
string |
Kai16Paper
KAI 16 paper size. |
#
'KAI16'
|
string |
Kai32Paper
KAI 32 paper size. |
#
'KAI32'
|
string |
Kai32BigPaper
KAI 32 Big paper size. |
#
'KAI32B'
|
string |
USLetterPaper
US Letter paper size. |
#
'LETTER'
|
string |
USLegalPaper
US Legal paper size. |
#
'LEGAL'
|
string |
USExecutivePaper
US Executive paper size. |
#
'EXECUTIVE'
|
string |
USFolioPaper
US Folio paper size. |
#
'FOLIO'
|
string |
PointsUnit
Points unit symbol. |
#
'pt'
|
string |
MillimetersUnit
Millimeters unit symbol. |
#
'mm'
|
string |
CentimetersUnit
Centimeters unit symbol. |
#
'cm'
|
string |
InchesUnit
Inches unit symbol. |
#
'in'
|
string |
PortraitOrientation
Portrait page orientation. |
#
'P'
|
string |
LandscapeOrientation
Landscape page orientation. |
#
'L'
|