/class.xhtml2pdf.php

Description

Cxhtml2pdf

xhtml2pdf - an XHTML 2 PDF translator

Roadmap
-----------------
v0.0.5 -> basic support for a, ul, ol, li, h1, img, table, span, hr, p, br, meta
v0.1.0 -> extended support for img-tags (with GD-libraray)
v0.2.5 -> supporting external fonts (dynamically creating)
v0.3.0 -> basic-support for style-sheets
v0.3.5 -> caching methods
v0.4.0 -> layer-support
v0.4.5 -> extending ezPDF in core

What is it?
-----------------
xhtml2pdf is a converter for ezPDF.
You can easy convert HTML-documents to PDF, but please be sure, that your document is XHTML-conform, otherwise you will get errors.

How does it work?
-----------------
working with ezPDF is not easy, because you can not edit the data, after you have added a text with ezText().
xhtml2pdf and his plugins creates pure PHP-code, which will be evaled.
I know, that it is a very very dirty way - but all other possibilities won't return SUCH a result.

What about tag-plugins?
-----------------
tag-plugins can contain the following methods:
*setPreferencesOfTag($arrInfo) which is called when a tag starts
*execTag() which is called, when a tag end
for a better overview, all new generated vars, which refer to a tag should start with "out[Tag]"
accessing a *global* var like the padding-left (access through $this->outGlobalIntendent) should start with "outGlobal[Setting]"
cached variables are used for dynamically changing the eval-code, it should start with "cached[Name]"

And supported tags?
----------------
NOT STARTED style - set style for your document. no really supported yet
NOT STARTED link - load extern css-file per allow_fopen
NOT STARTED div - layer-support
NOT STARTED span - text-block
PENDING *img - can load png and jpg from an extern source per allow_fopen
PENDING *table - rudimentar table support
PENDING *tr - rows
PENDING *td - cols
PENDING *th - heading cols
FINISHED *li - list
FINISHED *ul|li - sub-list
FINISHED *h1-6 - centered headline
FINISHED *center - centered text
FINISHED *p - paragraphs
FINISHED *br - a line break
FINISHED *i|*b - supported internal by ezPDF
FINISHED *title - title in your document
FINISHED *meta - support author, description, keywords, date in your meta-pdf-information
FINISHED *hr - horizontal line
FINISHED *a - hyperlink

Classes
Class Description
Cxhtml2pdf
Includes
include_once ('class.ezpdf.php') (line 73)
include_once ('class.styleparser.php') (line 76)
include_once ('class.xhtml2pdf.replacements.php') (line 74)
Constants
ALLOW_EXTERN_STYLE_SHEETS = TRUE (line 80)

Documentation generated on Tue, 29 Mar 2005 12:37:31 +0200 by phpDocumentor 1.3.0RC3