And From: SourceForge.net: iText, a JAVA-PDF library: Detail: 2810312 - Google AppEngine support
iText has dependencies on certain Java classes (java.awt.Color, java.nio.MappedByteBuffer etc.) which are ** not ** allowed by the Google AppEngine runtime (see http://code.google.com/appengine/docs/java/jrewhitelist.html). Google AQppEngine throws an exception e.g "java.lang.NoClassDefFoundError: java.nio.MappedByteBuffer is a restricted class. Please see the Google App Engine developer's guide for more details." is thrown for the unsupported class(es).
- Would it be possible to remove the dependency by iText on these Java classes, so as to enable the library to work within Google AppEngine?
posted 9 years ago
Daniel Reznick wrote:- Would it be possible to remove the dependency by iText on these Java classes, so as to enable the library to work within Google AppEngine?
I just checked and the answer is: No, we can't remove those dependencies from the main iText, because we'd have to remove parts such as the PdfGraphics2D functionality that is still used by many developers. PdfGraphics2D extends java.awt.Graphics2D and obviously needs java.awt.Color. I've also checked the MappedByteBuffer class, and some serious refactoring would be necessary to factor that class out.
If we want to provide an iText version of GAE, it would mean we have to maintain and support a separate branch. The cost of maintaining a separate branch is too high for the moment. I'm sorry, but we can't do that for free.