如何解决pdf文件无法在Android手机上打开
我正在尝试在网页加载后立即显示嵌入在我网页上的 pdf 文件。这就是我在 aspx 页面上显示 pdf 文件的操作:
<asp:Literal ID="ltEmbed" runat="server"></asp:Literal>
在我的 .cs 页面中
string embed = "<object class=\"ss-pdfjs-viewer\" data=\"{0}\" type=\"application/pdf\" allowfullscreen webkitallowfullscreen>";
embed += "</object>";
string fileName = HttpContext.Current.Session["RequestType"] + "_" + HttpContext.Current.Session["MailID"].ToString() + ".pdf";
ltEmbed.Text = string.Format(embed,ResolveUrl("~/Documents/" + fileName));
一切正常。我可以在我的网络应用程序 iphone 中打开这个 pdf 文件,但不能在安卓手机中打开。
我不知道为什么它不能在 android 和所有其他地方工作。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。