ODT2XHTML - THE class PHP to convert yours files ODT in files (X)HTML - ODT 2 XHTML!

Presentation of the Odt2Xhtml class

Odt2Xhtml - Odt to Xhtml - is a class PHP, version 5. She's purposed to transform files in format ODT to files (x)html, to make easier the publication on Internet, and/or the integration on content management system.

Story

Odt2Xhtml build in PCLZip library. She's a full rewriting another class PHP5, alike purpose, same name, but run with PECL Zip library.

Since July, 2007, it bases itself on the style sheet of the project ODFTools, having improved it...

Until the end of November 2007, version PHP4 was maintained - Since this date, there does not exist any more that version 5 - indeed the support official of PHP4 by group PHP is definitively stopped at December 31, 2007.

Download

Where? - 2008-01-21 -
ftp : BZ2, GZ, Zip, md5, sha1
svn : WebSVN

Coding it !

Use this code :

require_once('index.php'); # or index.php5

$file = 'name_file.odt'; # name file with extension !
$frontend = '/'; # directory where file odt to converse

$obj = new odt2xhtml(ODF_ROOT,$frontend,$file);
$obj->convert2xhtml();
$obj->delete_tmp();

/*** 
   if you desire to include code ODF file converted 
	in your file html, you can try to use this :
***/

$obj->get_elements_html();

## For use the method display_elements_html()
# you can use 'meta','css','body','title' 
#  and :
#   0 - to obtain with the elements containers
#	1 - to obtain without the elements containers

$obj->display_elements_html('css',1); 

Copyright

License : GNU/LGPL !

Partners

OpenDocument Format
OpenOffice.org Portable
Visioo-Writer
Others ...
"Ad-Myre"
Portable Libre
Xhtml2PDF

:: Project Odt2Xhtml ::
Copyright 2006-2007 -
EBNH Conception
Hosting in TF - Stats