如何使用 Play Framework 和 Google App Engine 创建 PDF?

发布于 2024-09-24 15:20:52 字数 64 浏览 0 评论 0原文

我需要使用 Play Framework 和 Google App Engine 创建 PDF。有人知道怎么做吗?

I need to create PDFs with Play Framework and Google App Engine. Does anyone know how?

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

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

发布评论

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

评论(3

你在看孤独的风景 2024-10-01 15:20:52

这并不是专门针对 Play 框架的,但这里有 Nick Johnson 编写的有关在 App Engine 上生成 PDF 的教程:

http://blog.notdot.net/2010/04/Generate-PDFs-on-App-Engine-Python-and-introducing-Mapvelopes< /a>

This is not specific about the Play Framework, but here is a tutorial by Nick Johnson on generating PDFs on App Engine :

http://blog.notdot.net/2010/04/Generating-PDFs-on-App-Engine-Python-and-introducing-Mapvelopes

画▽骨i 2024-10-01 15:20:52

GAE 有哪些限制?我假设你可以用 itext 来做到这一点。此外,还存在一个 play-module。我认为这取决于您的要求,什么是最适合您的解决方案。我可以想象报告引擎在 GAE 上不能很好地工作,特别是具有 OSGI 功能的 BIRT 具有 问题

What are the limitations in GAE? I would assume that you can do it with itext. Furthermore there exist a play-module. I think it depends on your requirements what is the best solution to you. I can imagine that a report-engine wouldn't work very well on GAE, specially BIRT with OSGI-features has problems.

油焖大侠 2024-10-01 15:20:52

iText 依赖于 Google App Engine 运行时不允许的某些 Java 类(java.awt.Color、java.nio.MappedByteBuffer 等)。

我发现了一个 iText hack(2.1.7 版本)并且有效:
链接文本

或者您可以下载补丁: 链接文本

iText has dependencies on certain Java classes (java.awt.Color, java.nio.MappedByteBuffer, and so on) which are not allowed by the Google App Engine runtime.

I found a iText hack (2.1.7 version) and works:
link text

Or you can download the patch: link text

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