开发者

Library to edit odt documents in php

开发者 https://www.devze.com 2022-12-28 17:29 出处:网络
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 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开发者_StackOverflow中文版 tasks? Or should I just parse the XML-file in a DOM-parser and modify it?


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

  • Docvert
  • OpenDocumentPHP
  • odf-xslt
  • OpenDocument
  • ods-php
  • odtPHP

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号