Extension OpenDocument4CMS

DESCRIPTION

Extension that supports OpenDocument standard in CMS

DEPENDS

FUNCTIONS

odf2xml()

Converts zipped opendocument file into one big xml file

my $xml=odf2xml('file:/');

odf2xml('file:/','file:/'); - not supported

extract('file:/')

my $obj=Ext::OpenDocument4CMS->extract('/home/user/test.odt');
main::_log("tmpdir='".$obj->{'tmpdir'}."'");
$obj->close();

save_as('file:/')

$obj->save_as('/home/user/test2.odt');

->get_images

Function return list of hashes with informations about included images

@images=$obj->get_images();
main::_log("first image source='".$images[0]{'src'}."'");

->to_xhtml

Function converts content into simple XHTML

my $xhtml=$obj->to_xhtml();

AUTHORS

Roman Fordinal (roman.fordinal@comsultia.com)


If published informations are not helpfull, something is missing or wrong, please report. Thanx for contribution.
This content is generated from file 'http://svn.cyclone3.org/trunk/frame/_addons/Ext/OpenDocument4CMS/_init.pm'

AddThis Social Bookmark Button RSS

User Comments