Detailed Description

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.

+ Inheritance diagram for PDF:

Public Member Functions

 Header ()
 
 startPage ()
 
 endPage ()
 
 isPageStarted ()
 
 isPageEnded ()
 
 moveDown ($units)
 
 moveRight ($units)
 
 numberOfLines ($width, $text)
 
 CheckPageBreak ($h)
 
 NbLines ($w, $txt)
 

Member Function Documentation

◆ Header()

Header ( )

Overridden to set the template on the page.

Definition at line 37 of file PDF.php.

◆ startPage()

startPage ( )

Call this method when rendering a new page.

Definition at line 45 of file PDF.php.

◆ endPage()

endPage ( )

Call this method when rendering a page finished.

Definition at line 53 of file PDF.php.

◆ isPageStarted()

isPageStarted ( )

Determine if a new page started.

Returns
Boolean

Definition at line 62 of file PDF.php.

◆ isPageEnded()

isPageEnded ( )

Determine if a page finished.

Returns
Boolean

Definition at line 70 of file PDF.php.

◆ moveDown()

moveDown (   $units)

Move the render position down by given units.

Parameters
$unitsThe number of units to move

Definition at line 78 of file PDF.php.

◆ moveRight()

moveRight (   $units)

Move the render position right by given units.

Parameters
$unitsThe 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
$widthThe width
$textThe text

Definition at line 96 of file PDF.php.

◆ CheckPageBreak()

CheckPageBreak (   $h)

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
$hThe height
Returns
Boolean whether a new page was inserted or not

Definition at line 115 of file PDF.php.

◆ NbLines()

NbLines (   $w,
  $txt 
)

Computes the number of lines a MultiCell of width w will take.

Parameters
$wThe width
$txtThe text

Definition at line 128 of file PDF.php.