我有一个动态的PDF表单,该表单已填充并展平。 此PDF可以在任何版本的IE上正确显示。 与Firefox我得到这个错误:使用iTextSharp PDF和Firefox获取损坏的内容错误:不适用于Firefox 10.xx
Corrupted Content Error
The page you are trying to view cannot be shown because an error in the data transmission was detected.
The page you are trying to view cannot be shown because an error in the data transmission was detected. Please contact the website owners to inform them of this problem.
任何人都可以请帮我,为什么我收到此错误,什么修复需要是没有打破我的功能IE PDF的代码。
不能准确记得次要版本,但是我在自动更新之一上遇到同样的问题。我认为更新搞砸了PDF应用程序映射。必须手动重新添加映射才能打开PDFw/Adobe Reader。另一件有效的工作是添加“Content-Disposition”标头,将PDF标记为文件附件,但不确定是否要去那里...... – kuujinbo 2012-03-12 18:50:24
服务器发送的HTTP头是什么样的? – 2012-03-12 22:47:40
这是如何将PDF输出到浏览器。 private void writeOutputStream(MemoryStream stream) //使用(MemoryStream stream = GeneratePDF(m_FormsPath,oXmlData)) // { byte [] bytes = stream.ToArray(); Response.ContentType =“application/pdf”; Response.BinaryWrite(bytes); Response.End(); //} } – djoshi 2012-03-13 13:44:38