在 php 中编辑 odt 文档的库

发布于 2024-08-30 17:13:19 字数 149 浏览 2 评论 0原文

我尝试在 PHP 中以编程方式编辑 ODT 文档。事实上,我只想进行一些文本替换并在表中添加新行。

我知道普通的 ODF 文档是包含 XML 文件的存档。但在我重新发明轮子之前:是否有任何库可以完成大部分任务?或者我应该在 DOM 解析器中解析 XML 文件并修改它?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

吻泪 2024-09-06 17:13:19

http://en.wikipedia.org/wiki/OpenDocument_software 列出了几个可使用的 PHP 工具ODT。

我没有使用过这些,我只是给你一个列表。您必须评估它们,看看它们是否具有您需要的特定功能。

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.

段念尘 2024-09-06 17:13:19

我还建议您也尝试使用 OpenTBS
它能够使用模板技术编辑 OpenDocument 文件,但它也可以检索 OpenDocument 中的 XML。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文