openoffice.orgdocument-conversion

Doc conversion using OpenOffice SDK


I have a need to be able to allow users to export their .doc files (which they upload) to a variety of formats. I got started on using OO SDK, and I set-up some custom filters using XSLT also. Everything works good and I am able to export word docs to pdf etc.

However I want to run this as a web service. I wish to run this conversion service on a dedicated node, so all file uploads by users wanting to convert their document will reach this dedicated node. My web app itself is PHP based. What is the best way to perform the conversion using OO SDK? I will have to store the resultant file in DB as well.

Do I need to run multiple instances of OO and feed each file to be converted to a specific instance? And, do I need to write a custom server to handle this, as I don't know if OO is multithreaded. Any advice greatly appreciated.


Solution

  • Have you looked into using JODConverter? It does all the heavy lifting for you.