On service-driven sites, you sometimes need to deliver personalized documents, generated in response to input from your visitors. This input can be used to provide an automatically filled-in form or to generate personalized documents, such as legal documents, letters, or certificates.
The example in this chapter presents a user with an online skill assessment page and generates a certificate. We explain how to
Use PHP string processing to integrate a template with a user's data to create a Rich Text Format (RTF) document
Use a similar approach to generate a Portable Document Format (PDF) document
Use PHP's PDFlib functions to generate a similar PDF document