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?

2 Answers 2

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.

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.
    – neo
    May 2, 2010 at 19:58
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.

5
  • OpenTDB is not maintained since 2006 and the demo don't work anymore!
    – FAjir
    Nov 15, 2013 at 9:43
  • @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 ?
    – Skrol29
    Nov 15, 2013 at 10:28
  • can we open an ODF document in browser and then save using OpenTBS
    – Umair Ayub
    May 3, 2014 at 9:26
  • @Umair Ayub: OpenTBS is under PHP and PHP is a server side process.
    – Skrol29
    May 4, 2014 at 11:21
  • OpenTBS is used to merge documents! I want an editor~
    – Umair Ayub
    May 4, 2014 at 14:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.