We can make dynamic PDF using fpdf which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. But if we just using this, it will be difficult if we want to make a 'nice' pdf document with a template that we have provided before and we just replace text in template. We can make it by using PDF template then replace the signed text in PDF template. How ever it has a lack, how about the text is more than provided space in template PDF ? It will be some trouble.
We can use another way, design your template in HTML, process template content; may be replace text in content, build another table, etc, then convert it become PDF files. We can use html2fpdf to convert. It will be easier than create template in PDF files.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment