使用Python创建openoffice .odt文档 [英] Create openoffice .odt document with Python

查看:204
本文介绍了使用Python创建openoffice .odt文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从Python创建开放式Office .odt文件?

How can I create an open office .odt file from Python?

我正在查看 http://wiki.openoffice.org/wiki/Python,但感到困惑.我已经有Python 2.7了,那我应该从哪里去呢?上面的链接讨论了使用Python进行Open Office交付.我已经知道了吗?而且我什至需要OpenOffice吗?是否不只是一些模板,某种文档所需的外观,以便将其识别为odt?我需要实际的编辑器吗?

I'm looking at this http://wiki.openoffice.org/wiki/Python, but am confused. I've already got Python 2.7 so where do I go from here? The above link talks about Open Office shipping with Python. Have I already got it?? And do I even need OpenOffice? Isn't there just some template, some way that a document needs to look like so it will will recognized as odt? Would I need the actual editor?

我想要类似 https://github.com/mikemaccana/python-docx,但适用于Open Office.

I'd like something like https://github.com/mikemaccana/python-docx, but for Open Office.

很抱歉这个开放式问题,但是我确实环顾四周,觉得我缺少一些关于需要什么的重要联系/理解.

Sorry for this open ended question, but I really have looked around and feel that I am missing some vital link/understanding about what is required.

推荐答案

我使用 relatorio 能够产生odt.您可以在此处查看文档

I use relatorio to be able to produce odt. You can have a look at the doc here

这篇关于使用Python创建openoffice .odt文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆