有人知道 Django 中有一个 RTF 报告生成器吗?

发布于 2024-07-15 03:41:26 字数 32 浏览 7 评论 0原文

我知道 PDF 报告生成器,但我需要使用 RTF。

I know about the PDF report generator, but I need to use RTF instead.

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

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

发布评论

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

评论(3

淡水深流 2024-07-22 03:41:26

PyRTF 但有一段时间没有更新了。

如果这不起作用并且您愿意进行一些黑客攻击,那么我还可以向您指出 GRAMPS 项目,具有 RTF 报告生成器(查看 gramps/docgen/RTFDoc.py)。 该代码非常适合他们的家谱报告需求,但它干净且记录良好,因此可以作为一个很好的起点。

There is PyRTF but it hasn't been updated in a while.

If that doesn't work and you are willing to do some hacking then I can also point you to the GRAMPS Project that has an RTF report generator (look in gramps/docgen/RTFDoc.py). This code is very specific to their genealogy reporting needs, but it is clean and decently documented so could make a good starting point.

孤寂小茶 2024-07-22 03:41:26

(还不能发表评论,所以我将其作为答案发布)

PyRTF 有一个分支,名为 pyrtf-ng,它得到维护并具有 Unicode 支持。
从我所看到的情况来看,文档并不存在,但是 api 看起来不错,并且您可以从 tests 目录中的测试中找出很多信息。

(can't comment yet so I post it as an answer)

There's a fork of PyRTF called pyrtf-ng, it's maintained and has Unicode support.
Documentation doesn't exist from what I've seen, but api looks nice, and you can figure out a lot from tests in tests dir.

漫雪独思 2024-07-22 03:41:26

Windward Reports 有一个非常好的 RTF 生成器。 您可以在 Word 中创建模板,因此非常易于使用。 (免责声明 - 我是 Windward 的 CTO。)是的,Java 引擎可以从 Python 调用。

Windward Reports has a very nice RTF generator. And you create the template in Word so very easy to use. (Disclaimer - I'm the CTO at Windward.) And yes the Java engine is callable from Python.

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