wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
PDF Class Reference
+ 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
 

Detailed Description

PDF extends FPDF/FPDI.

wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH

Licensed under the terms of any of the following licenses at your choice:

See the license.txt file distributed with this work for additional information.

Id:
class.PDF.php 1462 2014-02-04 23:52:27Z iherwig
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 29 of file class.PDF.php.

Member Function Documentation

PDF::Header ( )

Overriden to set the template on the page

Definition at line 37 of file class.PDF.php.

PDF::startPage ( )

Call this method when rendering a new page

Definition at line 45 of file class.PDF.php.

PDF::endPage ( )

Call this method when rendering a page finished

Definition at line 53 of file class.PDF.php.

PDF::isPageStarted ( )

Determine if a new page started

Returns
True/False

Definition at line 62 of file class.PDF.php.

References $_pageStarted.

PDF::isPageEnded ( )

Determine if a page finished

Returns
True/False

Definition at line 70 of file class.PDF.php.

References $_pageEnded.

PDF::moveDown (   $units)

Move the render position down by given units

Parameters
unitsThe number of units to move

Definition at line 78 of file class.PDF.php.

PDF::moveRight (   $units)

Move the render position right by given units

Parameters
unitsThe number of units to move

Definition at line 86 of file class.PDF.php.

PDF::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 class.PDF.php.

References NbLines().

+ Here is the call graph for this function:

PDF::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
True/False wether a new page was inserted or not

Definition at line 115 of file class.PDF.php.

PDF::NbLines (   $w,
  $txt 
)

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

Parameters
wThe width
txtThe text

Definition at line 129 of file class.PDF.php.

Referenced by numberOfLines().

Member Data Documentation

PDF::$_pageStarted = false

Definition at line 31 of file class.PDF.php.

Referenced by isPageStarted().

PDF::$_pageEnded = false

Definition at line 32 of file class.PDF.php.

Referenced by isPageEnded().


The documentation for this class was generated from the following file: