PDML is an informal markup language written in PHP that is similar to HTML. It allows for the creation of complex PDF documents and can also be used in conjunction with PHP, to define templates which can generate dynamic PDF documents.
PC4P is a library of php-classes to speed up the creation of reports and letters with support for such things as tables, images, background-images, wordwrap, pagebreak, all kinds of text manipulations and editing different pdf-pages simultaneously.