Create a PDF using PHP

Hi All

I have been working on this all day and just can’t get it.

I need to pull in an image and put some text on the top of it so people can print a certificate or save it as pdf.

The pdf part aside making the page is easy but how can I get it to output PDF?

Any ideas, sample code or direction would be appreciated.

Many Thanks


You can create a pdf image using Imagemagick although it is not a true pdf as it is not a vector file.

You could do something like this using the FPDF and FPDI libraries.

FPDF lets you create PDFs in PHP, and FPDI lets you import existing PDFs and change them using FPDF.
Takes a while to get used to them, but once you work it out they’re quite powerful pieces of software.