Document: ezcDocumentPdf
[ ]
[ Conversion ] [ Styles ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentPdf
|
Document handler for PDF documents. [
source]
This document handler can load Docbook documents and generate PDF documents from them. It can be configured using its option class ezcDocumentPdfOptions. The example below shows the configuration of a driver.
Like shown in the example, it is possible to load any amount of custom style definitions and register additional PDF parts, like headers and footers.
Parents
ezcDocument
|
--ezcDocumentPdf
Member Variables
|
protected string |
$content
The generated PDF |
|
protected array(ezcDocumentPdfPart) |
$pdfParts
= array()
List of PDF parts to append to documents |
|
protected ezcDocumentPdfStyleInferencer |
$styles
Container for style directives. |
Inherited Member Variables
From
ezcDocument:
Method Summary
Inherited Methods
From
ezcDocument :
Methods
createFromDocbook
Create document from docbook document
A document of the docbook format is provided and the internal document structure should be created out of this.
This method is required for all formats to have one central format, so that each format can be compiled into each other format using docbook as an intermediate format.
You may of course just call an existing converter for this conversion.
Parameters
Redefinition of
getAsDocbook
Return document compiled to the docbook format
The internal document structure is compiled to the docbook format and the resulting docbook document is returned.
This method is required for all formats to have one central format, so that each format can be compiled into each other format using docbook as an intermediate format.
You may of course just call an existing converter for this conversion.
Redefinition of
loadString
void loadString(
string
$string )
Create document from input string
Create a document of the current type handler class and parse it into a usable internal structure.
Parameters
| Name |
Type |
Description |
$string |
string |
|
Redefinition of
loadStyles
void loadStyles(
string
$file )
Load style definition file
Parse and load a PCSS file and use the resulting style definitions for rendering.
Parameters
| Name |
Type |
Description |
$file |
string |
|
registerPdfPart
Append a PDF part
Register additional PDF parts to be included in the rendering process, like headers and footers.
Parameters
save
string save(
)
Return document as string
Serialize the document to a string an return it.
Redefinition of
Last updated: Tue, 01 Sep 2009