Generate PDF from DB

I am a DreamHost web hosting customer and would like to be able to generate PDF files dynamically from data stored in MySQL and JPG files on the file system of the web server.

I’ve found a component that does this (PHP PDFlib), but it does not appear to be installed on the DreamHost server. Does anyone have any suggestions on how to achieve this objective?

Thanks for the tips. I will try out perl PDF::Create. It looks quite promising.