So here’s an interesting challenge. Where I work, I had to put together a server that converts word .doc format files to .pdf files for some of our documents. After quite a bit of searching around (doc2pdf type programmes and scripts), I’d settled on linbox converter. Basically it’s a daemon that runs on a windows machine that has MS Office installed as well as ghostscript and python. A client sends a doc with a request for conversion into, for example, PDF format. The daemon receives, runs office and prints to, for example, a PDF file which it then sends back to the client.
The problem I’ve experienced is with this one document that has jpg pictures in it. Linbox-converter (and even printing to PDF from word itself) seem to fail utterly and completely. The result is some garbled 1.5K long file full of nonsense. Here’s the magic: openoffice (2.01) will do the conversion just fine.
Now the question: anyone out there know how one might send cmd line args to oowriter2 to do the conversion for me? That way I can write a daemon (kinda like linbox converter I guess) that’ll just wrap around ooffice2 for the conversions. Thoughts, suggestions? Note: it has to be programmatic/automatic/system addict- yeah.