Document: ezcDocumentPdfPart
[ ]
[ Conversion ] [ Styles ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentPdfPart
|
Abstract base class for additional PDF parts [
source]
Parts can be new elements in a PDF page, which can hook into the rendering of the PDF page, like footers or headers.
This abstract part abse class offers a list of hooks which will be called, if an instance of this class is registered in the renderer, these hooks are:
- hookPageCreation
- hookPageRendering
- hookDocumentCreation
- hookDocumentRendering
All these hooks do nothing by default, and should be overwritten to accomplish the desired functionality.
Descendents
| Child Class |
Description |
| ezcDocumentPdfFooterPdfPart |
Basic foot class, which renders a simple page footer including information from the document.
|
Member Variables
Method Summary
Methods
hookDocumentCreation
void hookDocumentCreation(
$element )
Hook on document creation
Hook called when a new document is created.
Parameters
| Name |
Type |
Description |
$element |
ezcDocumentLocateableDomElement |
|
Redefined in descendants as
hookDocumentRendering
void hookDocumentRendering(
)
Hook on document rendering
Hook called once a document is completely rendered.
hookPageCreation
void hookPageCreation(
$page )
Hook on page creation
Hook called on page creation, so that certain areas might be reserved or it already may render stuff on the frshly created page.
Parameters
| Name |
Type |
Description |
$page |
ezcDocumentPdfPage |
|
Redefined in descendants as
hookPageRendering
void hookPageRendering(
$page )
Hook on page rendering
Hook called on page rendering, which means, that a page is complete, by all knowledge of the main renderer.
Parameters
| Name |
Type |
Description |
$page |
ezcDocumentPdfPage |
|
registerContext
Registration function called by the renderer.
Function called by the renderer, to set its properties, which pass the relevant state objects to the part.
Parameters
| Name |
Type |
Description |
$renderer |
ezcDocumentPdfMainRenderer |
|
$driver |
ezcDocumentPdfDriver |
|
$styles |
ezcDocumentPcssStyleInferencer |
|
Last updated: Mon, 21 Dec 2009