[reportlab-users] Returning PDF to a browser?
Ben Mitchell
reportlab-users@reportlab.com
Sat, 29 Nov 2003 16:46:56 -0800
Thanks all,
It turned out to be a header issue, not a filename issue. Due to the
way I was invoking the write of the PDF into the file, I was getting an
extra newline between the end of the headers and the start of the PDF.
That was all it took to fix it.
The problem was platform agnostic. I do most of my development on a
Mac, so I was seeing it in Safari first, but duplicated it reliably on
other platforms as well before finally figuring it out by dumping the
output on the commandline and looking at it close up.
Thanks again for your help!
-Ben
On Nov 29, 2003, at 11:01 AM, Andy Robinson wrote:
>> You should also check for Internet Explorer that the URL actually ends
>> with a .pdf as it sometimes seems to get the type from the extension
>> rather than the Content type in my experience
>>
>> David
>
> When I first started doing this 3 years ago, the raw PDF would often
> display as you describe. Changing executable cgi scripts from
> 'myapp.cgi' to 'myapp.pdf' was more effective than headers.
> However, I have seen this less often in the last 2 years.
> It would be good to collect some data on this.
>
> Can you repeat the problem with a particular version of IE?
> Have you tried other browsers?
>
> Thanks,
>
> Andy Robinson
>
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users