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

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

问题描述

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



是否有良好的Java PDF库可以将PDF写入内存以便流式传输到云端?根据 解决方案 (需要验证),在google群组(需要验证)。 htmlrel =nofollow noreferrer> PDFjet 可以在GAE上使用(它已被略微修改,以在几个地方用流代替文件)。正如他们在线程中所说的那样:


这是一个相当低级的库,但对于简单任务应该可以。

截至目前,iText和JasperReports在不兼容 ://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-enginerel =nofollow noreferrer>它会在App Engine中播放由于依赖于不在 JRE类白名单中的几个类一>。




更新(2010/09/26):正如Guido (我感谢他),有些人声称他们有一个 iText补丁使其与GAE兼容 EM>。值得尝试,如果你想玩iText。


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

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

解决方案

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.

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.


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天全站免登陆