views:

129

answers:

3

I need to create PDFs with Play Framework and Google App Engine. Does anyone know how?

A: 

This is not specific about the Play Framework, but here is a tutorial by Nick Johnson on generating PDFs on App Engine :

http://blog.notdot.net/2010/04/Generating-PDFs-on-App-Engine-Python-and-introducing-Mapvelopes

Franck
But, I need Java solution. I can mixing python and java in GAE?
isola009
A: 

What are the limitations in GAE? I would assume that you can do it with itext. Furthermore there exist a play-module. I think it depends on your requirements what is the best solution to you. I can imagine that a report-engine wouldn't work very well on GAE, specially BIRT with OSGI-features has problems.

niels
This module doesn't work in GAE
isola009
Then I would use iText. It's plain java with no magic and easy to program. But I'm not an expert in this question, perhaps someone know a more elegant way.
niels
iText doesn't work in GAE
isola009
:-( Sorry for the wrong hint. I didn't know that GAE has so much limitations.
niels
A: 

iText has dependencies on certain Java classes (java.awt.Color, java.nio.MappedByteBuffer, and so on) which are not allowed by the Google App Engine runtime.

I found a iText hack (2.1.7 version) and works: link text

Or you can download the patch: link text

isola009