Relevant Stack Overflow question/answer:
http://stackoverflow.com/a/9970672/447485
In short, you can't do it over simple Ajax, but you can emulate it.
Cheers,
AT
On Thu, Apr 24, 2014 at 8:56 AM, Tom Evans wrote:
> On Thu, Apr 24, 2014 at 4:31 AM, 张永强
On Thu, Apr 24, 2014 at 4:31 AM, 张永强 wrote:
>
> In my program, I want to generate a pdf and output to the browser.
>
> the server end code is:
>
> response = HttpResponse(content_type='application/pdf')
> response['Content-Disposition'] = 'attachment; filename="' +
In my program, I want to generate a pdf and output to the browser.
the server end code is:
response = HttpResponse(content_type='application/pdf')
response['Content-Disposition'] = 'attachment; filename="' + orderNumber +
'.pdf"'
response.write(pdf)
return response
In the code, the type of pdf
3 matches
Mail list logo