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 27 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)
 

Public Attributes

 $_pageStarted = false
 
 $_pageEnded = false
 

Member Function Documentation

Header ( )

Overriden to set the template on the page.

Definition at line 35 of file PDF.php.

startPage ( )

Call this method when rendering a new page.

Definition at line 43 of file PDF.php.

endPage ( )

Call this method when rendering a page finished.

Definition at line 51 of file PDF.php.

isPageStarted ( )

Determine if a new page started.

Returns
Boolean

Definition at line 60 of file PDF.php.

isPageEnded ( )

Determine if a page finished.

Returns
Boolean

Definition at line 68 of file PDF.php.

moveDown (   $units)

Move the render position down by given units.

Parameters
$unitsThe number of units to move

Definition at line 76 of file PDF.php.

moveRight (   $units)

Move the render position right by given units.

Parameters
$unitsThe number of units to move

Definition at line 84 of file PDF.php.

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 94 of file PDF.php.

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 113 of file PDF.php.

NbLines (   $w,
  $txt 
)

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

Parameters
$wThe width
$txtThe text

Definition at line 126 of file PDF.php.

Member Data Documentation

$_pageStarted = false

Definition at line 29 of file PDF.php.

$_pageEnded = false

Definition at line 30 of file PDF.php.