What I use is pdflib in PHP 4.3.3 which comes for other languages as well.
(http://www.pdflib.com, http://www.php.net/manual/en/ref.pdf.php)
There is also ClibPDF which I haven't tried (http://www.fastio.com,
http://www.php.net/manual/en/ref.cpdf.php)
Both extensions require license for commercial
Not sure about the PDF library, but you could use FPDF at www.fpdf.org.
This is a free class that can be included into your php pages to create PDF
documents. There is an image method that allows you to add JPEG (all
flavours) and PNG (all flavours except Interlacing and Alpha Channel).
Hope this