Hi,
There have been many great evolutions in the Zend_Pdf package, and I would like the thank Alexander
Veremyev for it, but some useful functions are still missing.
To be more precise, I am talking about functions like:
- drawXXX() with an additional parameter to specify the unit (may be this could be also implemented
with a document-scope unit that would be taken into accout in Zend_Pdf_Element_Numeric).
- drawContentStream() that is declared but remains to implement (I guess it is the way to draw a
block of text, but I may be confusing with drawLayoutBox())
- getStringWidth() to compute the width of a specified text
- drawTextAlignXXX() to draw some left/right/center-aligned text
But this will be for the future.
For now, I am asking the best way to add my own implementation of those functions to the
Zend_Pdf_Page class. Of course I know I can extend Zend_Pdf and Zend_Pdf_Page to My_Pdf and
My_Pdf_Page. But, if I load a PDF document from existing file with My_Pdf::load(), all the pages
will still be created as instances of Zend_Pdf_Page and not My_Pdf_Page.
What would you suggest then?
Best regards
--
Guillaume ORIOL
Software engineer
Technema