I want to create a PDF file using zend_pdf. But this way seems not efficient at all because I need to define the exact text location 🙁
$page->drawText(""Some text", $x, $y);
Is there any easier way to print text?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as I know I don’t think that there is an easy way to print a PDF with Zend_Pdf because you have to position everything.
For printing PDF in PHP, I always used TCPDF and converted HTML to PDF with great results. Unless you are forced to use Zend_Pdf I think you should avoid it. (I used the 1.11 version so things might change).