I want you take a look at http://www.webdeveloper.com/forum/showthread.php?t=187281. There is 2 solution with OpenOffice. Using API or using MACRO. Macro is easiest way to do something like file conversion.
I want you take a look at PUNO : http://www.wstech2.net/index.php?do=puno. With PUNO, you can access OpenOffice API. I have using it quite a while.. The result is : i can control presentation file in a web browser. I have tested it using my ubuntu 7.10 + OpenOffice 2.4.1. Not test in OOo 3 yet, because no SDK at the moment. So, if there is another question about it, welcome... The COM windows tutorial in there is good too..
The main and usual problem call ServiceManager with COM extension is permission! Have you set the permission?? COM permission.
There is a tool : JODConverter. You can take a tour on it and its guide(how to starting OOo as a service). http://www.artofsolving.com/opensource/jodconverter. This may insipire you..
For my experiment, the best result to control OOo is using java, not PHP! So, JSP or other technology may be suitable to you if you try to control OOo with its API.
Who is the man, installed OOo as a service, to satisfy web application, in a shared hosting?? None will!!
Hope this help you all..
Of cource there will be an error occured. You have created unfinish code. After loadComponentFromURL, what will you do about it? If there is nothing, then close it!