class Pdf extends Pdf (View source)
Extends the "TCPDF" class and helps in developing the structure of PDF Schema Export
Constants
PMA_PDF_FONT |
PDF font to use. |
Properties
array | $footerset | from Pdf | |
array | $alias | from Pdf | |
int|float | $xMin | ||
int|float | $yMin | ||
int|float | $leftMargin | ||
int|float | $topMargin | ||
int|float | $scale | ||
array | $customLinks | ||
array | $widths | ||
float | $cMargin |
Methods
Constructs PDF for schema export.
This function must be named "Footer" to work with the TCPDF library
Function to set alias which will be expanded on page rendering.
Sets the value for margins
Sets the scaling factor, defines minimum coordinates and margins
Outputs a scaled cell
Draws a scaled line
Sets x and y scaled positions
Sets the X scaled positions
Sets the scaled font size
Sets the scaled line width
This method is used to render the page header.
Sets widths
Generates table row.
Compute number of lines used by a multicell of width w
Set whether the document is generated from client side DB
No description
Details
__construct(string $orientation, string $unit, string $paper, int $pageNumber, bool $withDoc, string $db)
Constructs PDF for schema export.
void
Footer()
This function must be named "Footer" to work with the TCPDF library
in
Pdf at line 103
void
setAlias(string $name, string $value)
Function to set alias which will be expanded on page rendering.
in
Pdf at line 116
void
_putpages()
Improved with alias expanding.
in
Pdf at line 136
never
Error(mixed $msg = '')
Displays an error message
void
setCMargin(float $cMargin)
Sets the value for margins
void
setScale(float|int $scale = 1, float|int $xMin = 0, float|int $yMin = 0, float|int $leftMargin = -1, float|int $topMargin = -1)
Sets the scaling factor, defines minimum coordinates and margins
void
cellScale(float|int $w, float|int $h = 0, string $txt = '', mixed $border = 0, int $ln = 0, string $align = '', bool $fill = false, string $link = '')
Outputs a scaled cell
void
lineScale(float $x1, float $y1, float $x2, float $y2)
Draws a scaled line
void
setXyScale(float $x, float $y)
Sets x and y scaled positions
void
setXScale(float $x)
Sets the X scaled positions
void
setFontSizeScale(float $size)
Sets the scaled font size
void
setLineWidthScale(float $width)
Sets the scaled line width
void
Header()
This method is used to render the page header.
void
setWidths(array $w)
Sets widths
void
row(array $data, array $links)
Generates table row.
int
numLines(int $w, string $txt)
Compute number of lines used by a multicell of width w
void
setOffline(bool $value)
Set whether the document is generated from client side DB
string
getOutputData()
No description