O'Reilly logo

PHP and MySQL Web Development, Third Edition by Laura Thomson, Luke Welling

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 32. Generating Personalized Documents in Portable Document Format (PDF)

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

The Problem ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required