Bibliothek zu bearbeiten odt Dokumente in php
-
02-10-2019 - |
Frage
Ich versuche zu bearbeiten ODT-Dokumente programmaticly in PHP. In der Tat möchte ich nur einige Textersetzung und das Hinzufügen neuer Zeilen in einer Tabelle tun.
Ich weiß, dass ein normales ODF-Dokument ist ein Archiv mit XML-Dateien. Aber bevor ich das Rad neu erfinden: Gibt es eine Bibliothek, die die meisten Aufgaben tun? Oder sollte ich analysieren nur die XML-Datei in einem DOM-Parser und ändern Sie es?
Lösung
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.
Andere Tipps
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.