View Full Version : OpenOffice files indexing

12-26-2004, 01:09 AM
I have modified phpdig to index openoffice document. I test it for calc, impress, writer , draw and math application.

The diff file is avaible in the attached file.

To convert openoffice file to txt I have modified a perl script called soffice2html. I have attached my script too.

To work correctly, the http server must know the mime type of openoffice file. In a Apache server, this information is in the file mime.types. You must add following line

application/vnd.sun.xml.writer sxw
application/vnd.sun.xml.calc sxc
application/vnd.sun.xml.draw sxd
application/vnd.sun.xml.impress sxi
application/vnd.sun.xml.math sxm
application/vnd.sun.xml.writer.template stw
application/vnd.sun.xml.calc.template stc
application/vnd.sun.xml.draw.template std
application/vnd.sun.xml.impress.template sti

(Put a tabulation between mime type and the file extention)

All this is avaible in my web site: http://bonnet.jeanphilippe.free.fr/softwares/