Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to drawTextBlock in zend PDF

I using ZendFW 1.7.2 in my project and need to save PDF file. i am success for use function drawText but some of my data is too long so i need it break line. Now i get a solution from http://devzone.zend.com/1776/creating-pdf-documents-with-zend-framework/ that use function drawTextBlock but when i test with it.It's can't success any always return errors Fatal error: Call to undefined method Zend_Pdf_Page::drawTextBlock()

I think it's relate problem with something configuration ?Anyone used to success on it? please share it to me, I am looking to see your reply soon.

Thanks

like image 378
koe Avatar asked Oct 22 '22 04:10

koe


1 Answers

DrawTextBlock is not existing in Zend Framework as it is a proposal for a improvement by Nico Edtinger. See: http://framework.zend.com/wiki/display/ZFPROP/Zend_Pdf+text+drawing+improvements+-+Nico+Edtinger

The solution provided on Zend Framework PDF multiline problems probably will help you further.

like image 189
Remko Avatar answered Oct 25 '22 20:10

Remko