Hi,
Super!
One comment.
It's of course planned to extend Zend_Pdf with text formatting
functionality.
The only reason not to do it right now is a desire to make it well
designed.
Zend_Pdf (as well as MS Word and other formats in future) needs some
abstract model for document representation. It should contain
abstractions for titles, paragraphs, text blocks, text columns, image
embedding, tables, footnotes, page headers/footers, tables and so on.
So it should be done first.
With best regards,
Alexander Veremyev.
Jasp182 wrote:
Allan,
Thanks for posting this (and thanks to Willie as well for his getStringWidth
function)! I was able to use Willie's string width function to center and
right-align my text as well as to add word wrapping (justified alignment is
next). If anyone else is struggling with this and wants to discuss it
further, I'll gladly post the details and/or code for what I did. Not sure
if I did it exactly the "Zend Framework" way, but I subclassed the Zend_Pdf
and Zend_Pdf_Page classes to make it as generic as possible, and it came out
pretty clean.
Rich