如何使用 Play Framework 和 Google App Engine 创建 PDF?
我需要使用 Play Framework 和 Google App Engine 创建 PDF。有人知道怎么做吗?
I need to create PDFs with Play Framework and Google App Engine. Does anyone know how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这并不是专门针对 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
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.
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