如何使用 Perl 编写 Microsoft Word/Office Open XML 文档?

发布于 2024-09-12 08:36:01 字数 114 浏览 2 评论 0原文

我编写了一个 Perl 脚本,用于读取一些数据并为该数据生成 OpenOffice Writer/OpenDocument 文件。我还可以构建 Microsoft Word/Office Open XML 文档吗?

I have written a Perl script that reads some data and generates an OpenOffice Writer/OpenDocument file for that data. Can I also construct a Microsoft Word/Office Open XML document?

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

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

发布评论

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

评论(2

得不到的就毁灭 2024-09-19 08:36:01

要阅读 MS Word 文档,您可以使用 Open XML SDK 2.0 for Microsoft Office

您可能必须编写一个包装器才能将其与 Perl 脚本一起使用。

To read MS Word documents you can use Open XML SDK 2.0 for Microsoft Office

You may have to write a wrapper in order to use it with your Perl script.

蝶舞 2024-09-19 08:36:01

OpenOffice(或 LibreOffice)有一个名为 unoconv 的实用程序,可用于在格式之间进行转换。我相信它相当于在 OpenOffice 中打开输入文档,然后将其另存为输出格式。您说您的脚本已经生成了 opendocument 格式,因此您可以尝试使用 unoconv 从中生成 Word 文档。

OpenOffice (or LibreOffice) has a utility called unoconv that can be used to convert between formats. I believe it does the equivalent of opening the input document in OpenOffice and then saving it as the output format. You say you script already produces opendocument format, so you can try using unoconv to produce a Word document from that.

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