我想在下载文件或打印之前在iframe中显示PDF以供用户预览,
我使用字节数组将我的报告文件转换为 PDF 然后显示它。
一切都很完美,直到我需要SSL/HTTPS中的东西。
因此,我必须将我的应用程序更改为SSL/HTTPS,有人可以告诉我在这种情况下如何显示PDF。
感谢您收听和阅读我的问题。
这是我的代码
reportDocument.Load(reportPath);
reportDocument.SetDataSource(dataSet);
_contentBytes = StreamToBytes(reportDocument.ExportToStream(ExportFormatType.PortableDocFormat));
.....
//setting header
.....
//then flush
stream.Flush();
我在如果从 SSL 读取样式表,PDF 转换突然失败问题是我的Chrome浏览器中的PDF阅读器。所以我在商店搜索PDF查看器中更新了我的Chrome阅读器。只是它..