Martijn,

Be sure to file issues for the enhancements you'd like to add, along with
any code that could speed them along.  Also, I'd file it as a bug that you
can't extend these classes.  In my opinion no property should ever be marked
private in Zend Framework except in very specific cases (Zend_View, for
example).

-Matt

On Sun, Jul 20, 2008 at 7:52 AM, Martijn Korse <[EMAIL PROTECTED]> wrote:

>
> I've used fpdf a few times (some time ago) and last week took a look at
> Zend_Pdf
> Let met start by saying i'm really happy with it, as it's so much clearer!
>
> However, i got disappointed quite quickly when it appeared that Zend_Pdf
> doesn't do text wrapping of large amounts of text. So, first i did a search
> with google to see if other people had tackled this issue. I found a class
> called Zend_Cell_Pdf, but unfortunately, that didn't work with my 1.5.2
> installation. and every time i fixed one bug, i bumped into another. Also,
> i
> saw that even if i got it working it wouldn't support aligning the text
> with
> 'justify' - something i also need
>
> So, since it didn't seem to hard to program this functionality my self, i
> decided to do just that.
> One hour later, i had class that could create a text-block and even align
> it
> (left, right, center & justify). But then, the problems with Zend_Pdf
> started.
>
> I wrote a class that could do all the calculations and store the
> information
> about all the lines and spacing information.
> To keep things clean, i decided to overload the drawText function, by
> extending the Zend_Pdf_Page class and writing my own function.
> But since the $page object is created form the Zend_Pdf class i had to
> extend that class too, in order to let it instantiate my new page class.
> The problem is: both classes are filled with private variables that make
> extending them impossible. So, i'm left with two options:
> 1) modifying the Zend Framework classes so they can hadle my new
> functionality. I don't want this, because then i can never upgrade anymore
> 2) copying a lot code to my own classes to be able to write the output.
> this
> i obviously also don't want.
>
> I'm posting this here, to get some feedback. Maybe i'm overlooking some
> getter/setter functions? Maybe someone can explain to me if this was done
> intentionaly and why?
>
> i don't mind sharing my class btw. is that something i should post here on
> the mailinglist or is there a better place for that?
> --
> View this message in context:
> http://www.nabble.com/Zend_Pdf-..-problems-extending-the-class-tp18555196p18555196.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>

Reply via email to