I have a page with an iframe that displays a PDF file. It works fine in every browser except mobile Chrome. When the page opens, the PDF downloads to the phone or tablet and the page appears empty. Is there a way to force the file to display rather than downloading?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
This question are very old, but I find it in top of google )) For everyone who is looking for the solution: try to use http://googlesystem.blogspot.ru/2009/09/embeddable-google-document-viewer.html
If your file avalible via internet (and do not require autorisation on site), you can embed it with iframe.