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?
You can use iText without limitations now. There is no need for a patch since version 5.2.0 anymore.
Have a look at the following post for an example: Generate PDF using GAE and iText
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With