I need to add into pdf file one page after already existing first page and into this added page write text. I read somewhere, that Zend framework can do it, but I have no idea how.
Thanks in advance for answer
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.
First you need to create a pdf object and assign it to a variable:
Then you need to read your pdf file into the object:
Now, you add a (A4) page to the pdf object:
Then, before you can write text to the page, you need to grab a font:
And state that you will be using this font:
Now you can write text to the page with:
We’re done with the page, so close it with:
Finally, close and save the file:
Credit: Generate PDFs with PHP
Other good tutorials:
Part 2