Karol Grecki wrote: > > Martijn > > I encountered the same problem over a year ago and I managed to build my > own paragraph and table functionality without extending any of the Zend > classes. They work by accepting zend page object as an argument so the > interface is a bit different then regular methods but they work fine. > > Karol
That was my first approach (passing the $page object to my own class), so i could then use $page->drawText(). The problem is that drawText() doesn't allow for modification of the 'header'; i don't know the official PDF word for that, but what i mean is the BT\n it adds to content just before outputting the actual contents of the string. This would be fine if it wasn't for my align=justify, which needs a different header. That's why i decided to write my own Zend_Page class and overload the drawText() method so i could give an extra argument to modify these headers. But doing so gave the before mentioned problems with all those private variables. Karol, can i ask how you solved this problem? btw, thank you all for your feedback so far. I will file a bug report later today -- View this message in context: http://www.nabble.com/Zend_Pdf-..-problems-extending-the-class-tp18555196p18562057.html Sent from the Zend Framework mailing list archive at Nabble.com.
