You can use pyfpdf or reportlab. I let Mariano explain how to use
pyfpdf.

To use reportlab just unzip the pure python implementation in web2py/
site-packages

import it in any of your actions.

call if from your controller actions and/or view.

(p.s. web2py actions also can return a file-like object but that is
beside the point, you can use cStringIO.StringIO)



On Nov 12, 5:59 am, Tiago Rosa <[email protected]> wrote:
> Hi folks,
>
> I need to generate PDF reports from my GAE-deployed application. The
> question is: how? Obviously the example in the web2py book won't work
> because AppEngine does not allow access to the filesystem. I've found
> this is possible in Django because Django's HttpResponse is a file-
> like object and ReportLab's API can act on that.
>
> Is there a similar way to generate these reports with GAE?
>
> Thanks in advance!
>
> ---
> Tiago Rosa

Reply via email to