使用iframe中显示PDF SSL / HTTPS基础 [英] Display pdf in iframe using ssl/https based

查看:513
本文介绍了使用iframe中显示PDF SSL / HTTPS基础的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要显示里面的iframe用户preVIEW PDF文件下载或打印之前,

我使用的字节数组转换我的报告文件,PDF则显示它。

一切都很完美,直到我需要的东西的SSL / HTTPS。

因为,我必须改变我的应用程序到SSL / HTTPS可以有一个人告诉我我该怎么让PDF在这种情况下。

感谢听力和阅读我的概率。

在这里我的code

  reportDocument.Load(reportPath);
        reportDocument.SetDataSource(数据集);
        _contentBytes = StreamToBytes(reportDocument.ExportToStream(ExportFormatType.PortableDocFormat));
       .....
       //设置页眉
       .....       //然后冲水
       stream.Flush();


解决方案

我找到了解决方案
<一href=\"http://stackoverflow.com/questions/30260349/pdf-conversion-suddenly-fails-if-reading-stylesheet-from-ssl\">PDF转换失败,突然从SSL 如果阅读样式表
问题是我的chrome浏览器内的PDF阅读器。
所以我更新我的铬读者存储搜索PDF浏览器..
只是它..

I want to Showing PDF inside iframe for user preview before download the file or print,

i use byte array convert my report file to pdf then showing it.

everything was perfect until i need something in ssl/https.

because of that i must change my application to ssl/https can some one show me how can i show pdf in this condition.

thanks for listening and reading my prob.

here my code

        reportDocument.Load(reportPath);
        reportDocument.SetDataSource(dataSet);
        _contentBytes = StreamToBytes(reportDocument.ExportToStream(ExportFormatType.PortableDocFormat));
       .....
       //setting header
       .....

       //then flush
       stream.Flush();

解决方案

i found the solution in PDF conversion suddenly fails if reading stylesheet from SSL the problem is the pdf reader inside my chrome browser. so i updating my chrome reader in store search pdf viewer.. just it..

这篇关于使用iframe中显示PDF SSL / HTTPS基础的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆