适用于 GAE 的 Java PDF 库? [英] Java PDF Library that works on GAE?

查看:30
本文介绍了适用于 GAE 的 Java PDF 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于 GAE 有严格的限制,例如 -Java 应用程序不能使用任何用于写入文件系统的类"...

Since GAE has severe restrictions like - "A Java application cannot use any classes used to write to the filesystem"...

有没有好的 Java PDF 库可以将 PDF 写入内存以便流式传输到云端?

Is there a good Java PDF library that can write the PDF to memory for streaming to the cloud?

推荐答案

根据此主题 谷歌群组(需要身份验证),PDFjet 可以在 GAE 上使用(在一些地方稍微修改了用流替换文件).正如他们在线程中所说:

According to this thread on google groups (requires authentication), PDFjet can be used on GAE (it has been slightly modified to replace files by streams at a few places). As they say in the thread:

这是一个相当低级的库,但对于简单的任务应该没问题.

It's a quite low-level library but should be ok for simple tasks.

截至目前,iText 和 JasperReports 在 "它会在 App Engine 中播放吗" 页面,因为它依赖于 JRE 类白名单.

As of now, both iText and JasperReports are listed as incompatible on the "Will it play in App Engine" page due to the dependence on several classes that are not in the JRE class whitelist.

更新 (2010/09/26): 正如 Guido 在评论中提到的(我为此感谢他),有些人声称他们有一个 iText 补丁以使其与 GAE 兼容.如果您想玩 iText,值得一试.

Update (2010/09/26): As mentioned by Guido in a comment (and I thank him for that), some people claim they have an iText patch to make it compatible with GAE. Worth the try if you want to play with iText.

这篇关于适用于 GAE 的 Java PDF 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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