PDF extends FPDF/FPDI.
- Note
- This class requires FPDI
- Author
- ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m
Definition at line 29 of file PDF.php.
◆ Header()
Overridden to set the template on the page.
Definition at line 37 of file PDF.php.
◆ startPage()
Call this method when rendering a new page.
Definition at line 45 of file PDF.php.
◆ endPage()
Call this method when rendering a page finished.
Definition at line 53 of file PDF.php.
◆ isPageStarted()
Determine if a new page started.
- Returns
- Boolean
Definition at line 62 of file PDF.php.
◆ isPageEnded()
Determine if a page finished.
- Returns
- Boolean
Definition at line 70 of file PDF.php.
◆ moveDown()
Move the render position down by given units.
- Parameters
-
$units | The number of units to move |
Definition at line 78 of file PDF.php.
◆ moveRight()
Move the render position right by given units.
- Parameters
-
$units | The number of units to move |
Definition at line 86 of file PDF.php.
◆ numberOfLines()
numberOfLines |
( |
|
$width, |
|
|
|
$text |
|
) |
| |
Computes the number of lines a MultiCell of width w will take instead of NbLines it correctly handles linebreaks.
- Parameters
-
$width | The width |
$text | The text |
Definition at line 96 of file PDF.php.
◆ CheckPageBreak()
The following code is taken from FPDF Add-On 'Table with MultiCells'.
- See also
- http://www.fpdf.de/downloads/addons/3/ If the height h would cause an overflow, add a new page immediately
- Parameters
-
- Returns
- Boolean whether a new page was inserted or not
Definition at line 115 of file PDF.php.
◆ NbLines()
Computes the number of lines a MultiCell of width w will take.
- Parameters
-
Definition at line 128 of file PDF.php.