I'd like to convert some .odt files to .pdf in PHP, I'm assuming I can just use commands like: `odt2pdf -i myfile.odt -o myfile.pdf` but the problem is, odt2pdf doesn't exist (at least not that I know of), so is there a linux equivalent to what I want to do? Or maybe a PHP class that does this? Or better yet, if it is possible to run OOo from the command line and do this sort of stuff... Ideas?
http://www.google.co.uk/search?hl=en&q=ooo+script+create+pdf&spell=1 First and third entries have stuff that maybe useful
yeah, unfortunately that requires X server to be installed, which I don't use I guess I was hoping there was a missing PHP module that I hadn't heard of before that did something like this.
Prepare for some hacking... here's an odt to html class http://www.phpclasses.org/browse/package/2586.html
I was thinking along the lines of extending fpdf with the sxv/odt parsing code from that class. I'm told that only the X libraries would be needed to run openoffice via a virtual frame buffer.