Hi Markus and all,
Sorry for the delay with response, I had to review
current state of RE Framework to make decisions about Zend_Pdf future plans.
Some time ago Kevin and Willie (ones of Zend_Pdf
authors) branched RE Framework (http://www.refw.org/)
from Zend_Pdf. The goal was to have an ability to make changes which were not
backward compatible with Zend_Pdf.
Plans to merge back these changes into ZF were also
announced at that time (e.g. for ZF 2.0).
As I checked, RE_Pdf has good improvements in text and
fonts processing.
It uses an advantage of following standards used in the
printing industry. E.g. text (represented as attributed strings) may have up to
15 standard attributes set (font, font size, color, bgcolor, stroke with/color,
underline style, ...).
Other parts of changes are some code reorganization
and PDF objects processing reimplementation.
These "engine" updates may or may not be merged
into Zend_Pdf. That's subject for discussions (I see using SplObjectStorage and
using arrays instead of objects for some cases are more effective), but these
changes don't affect user API.
So, functional changes may be merged back into
Zend_Pdf as extension of current functionality without waiting for 2.0 ZF release,
if Kevin and Willie have an ability to do this.
If you and your team have resources to work on
Zend_Pdf extending, that would also be really nice.
I should also say that Zend_Pdf may implement
different drawing approaches in the same time.
It may be an imperative approach: draw this text here
(in this rectangle) using this font and following attributes (padding,
alignment, color, ...).
It may be some text flow processing engine (please take
a look at http://framework.zend.com/wiki/x/nI0)
It may use some markup language to prepare PDF page.
You are welcome to contribute to it!
With best regards,
Alexander Veremyev.
> -----Original Message-----
> From: Markus Wolff
[mailto:[hidden email]]
> Sent: Thursday, May 07, 2009 3:51 PM
> To: fw-formats
> Subject: [fw-formats] Plans for Zend_PDF
>
> Hi,
>
> since our project team is going to need to create
PDF documents with
> complex layouts soon and Zend_PDF does not really
support hits right
> now, we are considering adding support for cells
and tables by ourselves.
>
> Before we do that, I'd like to inquire if there
are already plans (and
> more importantly, time-tables) for adding those
features to Zend_PDF
> "officially".
>
> Given that there have been quite a few patches
and enhancements by other
> users who also proposed these for official
inclusion, I am also
> wondering if Zend is currently considering one
those options? If the
> current patches are not being considered, it
would be good to know why,
> so we could work towards not repeating mistakes
others have already made
> and maybe be able to contribute our code?
>
> Best wishes,
> Markus