View Single Post
Old 12-26-2004, 01:09 AM   #1
Jean-Phi
Green Mole
 
Join Date: Dec 2004
Posts: 1
Smile OpenOffice files indexing

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
Code:
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/
Attached Files
File Type: txt phpdig-1.8.6_openoffice.diff.txt (11.5 KB, 20 views)
File Type: zip soffice2txt.zip (1.8 KB, 26 views)
Jean-Phi is offline   Reply With Quote