On Tue, 04 Jun 2002 13:15:12 -0700, Tim Roberts wrote: > >I have a webware site in which I need to produce reasonably good looking >printed output. We all know that the current generation of browsers has an >extremely high degree of suckage in its ability to render tabular-formatted >printed output. So, I decided to use ReportLab to produce PDF files. >... >So, is there a way that a Webware servlet can generate something that passes >through Apache and looks to the browser as if it were a PDF binary, without >using this redirect trick? I tried various permutations of "Content-Type", >including application/pdf, but I didn't come up with the right recipe.
Thank you to the four people who replied almost immediately after my question. I thought I had previously tried what the replies suggested: Content-type: application/pdf Content-disposition: attachment; filename=labels.pdf But I must have had something wrong in the incantation. This does exactly what I expected. Actually, there is one weird side effect: I get TWO "Open from this location / Save to disk" dialogs, but it only opens Acrobat once. I can experiment with that. Thanks very much! -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
