I generate pdf documents dynamically (e.g. medical forms) on the web
using ReportLab.  Not yet with TurboGears, but I don't foresee any
problems.

Some issues:

- How long will it take to generate your document?  If it's a single
page, probably not too long regardless of the complexity.  If it's long
and complex then you may need to handle document generation somewhat
differently -- perhaps in a separate process.

- You'll have to be aware how different browsers render a pdf document.
 Most of the time you can simply include "application/pdf" in the
Content-type response header, but earlier versions of Microsoft
Internet Explorer (perhaps even current version?) ignore the
Content-type header and you have to fool them into thinking they're
downloading a pdf document.

Once I start using TurboGears for a real application work, I'll try to
provide some examples using ReportLab, but it shouldn't be difficult to
figure out.  ReportLab is very nice to work with.

Jeff Bauer
Rubicon, Inc.

Reply via email to