> Does anyone have success/horror stories generating pdf files under
> mod_perl?  Recommendations?

I recently built a customer billing system system that generated PDF
invoices using Latex + Template-Toolkit.  See 

  http://template-toolkit.org/docs/blue/Manual/Filters.html

This was an backend system, but the files could easily be generated
online by simply wrapping the template processor in a handler with the
appropriate Content-Type: headers.

Tip: Although the Content-Disposition: header is supposed to tell the
browser the appropriate filename for the file, this doesn't actually
work in most browsers.  The solution is to extend the URL past the
handler/script, e.g. :

    http://server/perl/pdfgen.pl/MYPDFFILE.pdf

Apache will dispatch this to pdfgen.pl, but the browser will assume
the default filename is MYPDFFILE.pdf.

Hope this helps,
Steve

Reply via email to