Library to edit odt documents in php
Asked Answered
A

2

10

I try to edit ODT-documents programmaticly in PHP. In fact I just want to do some text replacement and adding new rows in a table.

I know that a normal ODF document is an archive containing XML-files. But before I reinvent the wheel: is there any library which does most of the tasks? Or should I just parse the XML-file in a DOM-parser and modify it?

Ahmedahmedabad answered 2/5, 2010 at 19:46 Comment(0)
S
4

http://en.wikipedia.org/wiki/OpenDocument_software lists several PHP tools for working with ODT.

I haven't used any of these, I'm just giving you the list. You'll have to evaluate them to see if they have the specific features you need.

Synchronic answered 2/5, 2010 at 19:52 Comment(1)
The last one looks very promising (it's always the last in a list that is the most interesting). According to the tutorial text-replacement and row-adding is possible.Ahmedahmedabad
B
1

I also suggest that you also try with OpenTBS. It is able to edit an OpenDocument file using the technical of templates, but it can also retrieve XML in an OpenDocument.

Bangle answered 29/3, 2011 at 21:51 Comment(5)
OpenTDB is not maintained since 2006 and the demo don't work anymore!Refuel
@Florito : OpenTBS last version dated 2013-08-30. There is a beta actually on the road, and the forum is active. So where did you see that it is not maintained ?Bangle
can we open an ODF document in browser and then save using OpenTBSAcima
@Umair Ayub: OpenTBS is under PHP and PHP is a server side process.Bangle
OpenTBS is used to merge documents! I want an editor~Acima

© 2022 - 2024 — McMap. All rights reserved.