old blog,

ODFPy - Python ODF manipulation library & tools

Izhar Firdaus Izhar Firdaus Follow Support Aug 12, 2009 · 1 min read
ODFPy - Python ODF manipulation library & tools
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.
I was looking for some cli tools to convert odf to html, however, most ODF converters I found out there utilizes OpenOffice-Uno or OpenOffice macro for conversion of ODF documents - which means, they need a full blown openoffice to be installed and running before being able to convert the documents. Unoconv is one of them (available in Fedora repos). These type of tools are resource intensive, and can't really run without GUI, not quite what I want.

Searching for ODF through yum revealed a package which looks quite interesting to me:

odfpy.noarch : Python library for manipulating OpenDocument files

Being curious, I installed ODFPy, and to my surprise, the package also provide some scripts to automatically convert ODF to several text based formats - odf2xhtml,odf2mht,odf2xml and odf2war - just what I was looking for. Looking at the available libs, theres also odf2moinmoin.py.

While not perfect, the conversion works fairly ok, plus, if stuff does not work correctly, the scripts are in Python and from a quick glance, they looks quite easy to adjust and enhance.

Might be fun if can integrate this with Plone. ^-^
Written by Izhar Firdaus Follow Support
I'm a system architect, data engineer and developer advocate with passion in Free / Open Source software, entrepreneurship, community building, education and martial art. I take enjoyment in bridging and bringing together different FOSS technologies to help businesses and organizations utilize IT infrastructure to aid and optimize their business and organizational process.

T400 & Fedora 11

synergy(R51,dualscreen(T400,E228WFP)) = Geek Haven!!My old R51 performance have been bugging me for this past several months, overhea...

In old blog, Aug 09, 2009

« Previous Post

FOSS.my 2009!

FOSS.my 2009 is back and is coming your way this 24th and 25th of October .The registration page is up and accepting registrations n...

In old blog, Sep 03, 2009

Next Post »