Our ODF library offer many tools to manipulate ODF documents.

ODT to text

You can extract text from open documents:

$ lpod-show.py document1.odt -o document.txt
$ lpod-show.py spreadsheet1.ods -o spreadsheet.txt
$ lpod-show.py presentation1.odp -o presentation.txt

RST to ODT

You can convert reST document into an ODT documents:

 $ lpod-convert.py document.rst document.odt

Dump the content of ODT document with reST syntax

$ lpod-show.py document1.odt -r -o document.rst 

Extract images from ODF

You can easily extract images, text and style of any open document:

$ lpod-show.py document.odt -o rep/
rep/
├── content.txt
├── meta.txt
├── Pictures
│   ├── 10000000000000B40000003DEF8592CB.png
│   ├── 100002010000013B000000667BF571B3.png
│   └── 100002010000032B00000115AC4572DA.png
└── styles.txt

Merge ODF documents

 

The script lpod-merge.py allow to merge 2 ODF documents into one document.


$ lpod-merge.py document1.odt document2.odt -o document3.odt
$ lpod-merge.py spreadsheet1.ods spreadsheet2.ods -o spreadsheet3.ods
$ lpod-merge.py presentation1.odp presentation2.odp -o presentation3.odp

 

Validate ODF documents

The script lpod-test.py allow to validate ODF documents (ODT/ODS/ODP)

$ lpod-test.py document.odt
$ lpod-test.py spreadsheet.ods
$ lpod-test.py presentation.odp

 

Works with style of your ODF Documents

lpod allow to remove style of a document: 

$ lpod-style.py -d document_with_style.odt -o document_without_style.odt


Export meta

You can easily export meta informations of any open document :

$ lpod-meta.py document.odt

> Modification date: 2009-07-03 17:49:38
> Creation date: 2009-07-03 17:27:24
> Initial creator: sylvain
> Editing duration: 0:22:16
> Editing cycles: 2
> Generator: OpenOffice.org/2.4$Unix OpenOffice.org_project/680m17$Build-9310
> Statistic:
>   - Word count: 67
>   - Image count: 0
>   - Object count: 0
>   - Page count: 1
>   - Character count: 402
>   - Paragraph count: 19
>   - Table count: 0
> User defined metadata:
>   - Info 2: None
>   - Info 3: None
>   - Info 1: None
>   - Info 4: None