ipad上的弹出窗口 [英] popup windows on ipad

查看:186
本文介绍了ipad上的弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我开发了一个网站,我在弹出窗口中显示PDF格式。



但是当我在Ipad上查看同一个网站时,默认会下载相同的PDF而不是打开一个弹出窗口。



Ipad需要什么显示弹出窗口?

Hello all,

I have developed a website where I am displaying a PDF in a popup window.

But when I view the same website on Ipad, the same PDF by default gets downloaded instead of opening a popup window.

What needs to be for Ipad to show the popup windows?

推荐答案

要使该浏览器能够预览PDF文档,您需要使用兼容的浏览器,支持预览的浏览器PDF文档,可以通过thir-party插件或开箱即用;内置支持。



如果浏览器不支持文件,而不是打开它...它将下载并保存在机器上的文件供用户预览(打开) )它使用他们机器上安装的任何软件应用程序。



要预览PDF,您需要自己阅读PDF;使用图书馆。然后将这些字节流式传输到客户端并将其呈现为HTML内容。有很多库允许您将PDF数据转换为HTML数据。阅读以下主题。



http://stackoverflow.com/questions/2295555/how-to-convert-pdf-into-html-using-c-sharp [ ^ ]

asp.net中的PDF到HTML转换(c#) [ ^ ]

http ://forums.asp.net/t/1417395.aspx?将+ pdf +转换为+ html + in + c + [ ^ ]
For that browser to be able to preview the PDF document, you need to be using the compatible browser, the browser which supports previewing the PDF documents, either by a thir-party plugin or right out of the box; built-in support.

If the browser doesn't support a file, instead of opening it... It will download and save the file on the machine for the user to preview (open) it using any of the software application installed on their machine.

To preview PDFs, you need to be reading the PDF yourself; using a library. And then streaming those bytes down to the client and rendering them as HTML content. There are quite multiple libraries which allow you to convert the PDF data to HTML data. Read the following threads.

http://stackoverflow.com/questions/2295555/how-to-convert-pdf-into-html-using-c-sharp[^]
PDF to HTML conversion in asp.net(c#)[^]
http://forums.asp.net/t/1417395.aspx?convert+pdf+to+html+in+c+[^]


这篇关于ipad上的弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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