Editing PDFs with PHP

At the end of all SitePoint courses, we offer a free download of a certificate that reads something like

‘I survived JavaScript Live and all I got was this certificate’.

There’s a logo, some shiny graphics, and a signature from the trainer.

What I’m looking for a is a script that will allow me to personalize the certificate.

So someone enters their name, clicks go, and a unique PDF certificate is create for them to download.

I could get the SitePoint dev team to build me something, but I thought I’d ask first if anyone knows of any scripts (PHP) that might suit my needs.

Hey, Shane, check out these two articles:
http://www.15seconds.com/issue/010822.htm
http://www.15seconds.com/issue/010823.htm

I used them to quickly create a fillable PDF and was able to send data directly to the
form that created the FDF on the fly and produced the PDF with the data filled in.

Thanks Stephen – I’ll check it out.

http://www.setasign.de/products/pdf-php-solutions/fpdi/ is an extension for FPDF that allows you to import a PDF and then modify it using the FPDF PHP library.

The only trouble I had with it was images in the original getting lost and needing to be added back in.

I’m not absolutely sure but I had in mind that there was an editing capability for http://www.tcpdf.org/, too.
Perhaps it was a plugin or I’m totally wrong…didn’t find it when doing a quick search for it :-/