PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Mod Submissions (http://www.phpdig.net/forum/forumdisplay.php?f=24)
-   -   OpenOffice files indexing (http://www.phpdig.net/forum/showthread.php?t=1673)

Jean-Phi 12-26-2004 01:09 AM

OpenOffice files indexing
 
2 Attachment(s)
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/


All times are GMT -8. The time now is 03:45 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.