views:

347

answers:

3

Does Zend_Pdf already support automatic wrapping of text?

For example I want to create a textblock and fill it with text. This is a very important feature and unless Zend Pdf does not have it I am not able to switch from FPDF.

Also I think a Framework that says it has PDF support should be able to offer their developers this kind of feature.

Or am I missing something here?

+2  A: 

Indeed Zend_Pdf is not mature enough to compare with the regular Zend_YouNameIt component.

In my oppinion Zend_Pdf should not be part of Zend. It is very limited and can't be used in most cases because one or the other feature is missing.

As for the feature you are missing, you would have to check the Manual or read the code but in general I advise to use something else for PDF generation until Zend_Pdf is mature enough.

I think the best solution would be for Zend_Pdf to be a wrapper for some kind of command line tool.

tharkun
@tharkun: Your answer might be old, but right now I think Zend_PDF has the basic set of function to handle 90 % of the case.
RageZ
+2  A: 

Hi, Zend pdf is not supporting automatic word wrap.

ArneRie
+1  A: 

I can recommend you to use dompdf instead. It allows you to define the page in html and render it into a pdf. Wordwrap will be handled fine!
It even allows for page breaks, so multi-page pdfs are possible.

Exception e