views:

329

answers:

2

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?

+3  A: 

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.

Pascal Thivent
Cool. That is exactly the lead I needed.
Stevko
Some people claim they have an iText patch to make it compatible with GAE : http://blog.rubypdf.com/2009/12/17/how-to-run-itext-on-google-app-engine/
Guido
@Guido Interesting. Thanks!
Pascal Thivent
A: 

also, look at fop on gae to generate pdf using xml and xsl:fo models