Hi,

you might be interested in my side project: http://template2pdf.com/
Which is basically an API to generate PDFs out of OpenOffice templates.
There is php example code available and it is...