“name” web pdf for better default save filename in Acrobat?

后端 未结 16 1749
难免孤独
难免孤独 2020-12-14 00:09

My app generates PDFs for user consumption. The \"Content-Disposition\" http header is set as mentioned here. This is set to \"inline; filename=foo.pdf\", which should be

16条回答
  •  感动是毒
    2020-12-14 00:46

    I was redirected here because i have the same problem. I also tried Troy Howard's workaround but it is doesn't seem to work.

    The approach I did on this one is to NO LONGER use response object to write the file on the fly. Since the PDF is already existing on the server, what i did was to redirect my page pointing to that PDF file. Works great.

    http://forums.asp.net/t/143631.aspx

    I hope my vague explanation gave you an idea.

提交回复
热议问题