Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java PDF Library that works on GAE? [closed]

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?

like image 692
Stevko Avatar asked Nov 19 '09 17:11

Stevko


2 Answers

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

like image 93
Flori Avatar answered Oct 26 '22 04:10

Flori


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.

like image 34
Pascal Thivent Avatar answered Oct 26 '22 03:10

Pascal Thivent