页面标题和文件名不适用于来自文件处理程序的 PDF 查看器

问题描述

我无法使用 asp.net 处理程序获取我的 pdf 查看器的文件名和页面标题

我已经为 HTTPS 响应添加了所需的标头,但仍然没有运气。

HttpContext.Current.response.addheader("content-disposition","inline; filename=\"" + fileName + "\"");
HttpContext.Current.Response.ContentType = "application/pdf";

我得到

enter image description here

响应头如下

enter image description here

我期待以下

enter image description here

如果有人提供有效的解决方案,那将是一个很大的帮助。谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)