如何在网站中嵌入PDF文件? [英] How to embed a PDF file in a web site?

查看:113
本文介绍了如何在网站中嵌入PDF文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想在一个网站上嵌入一个PDF文件。



我发现的最佳解决方案是Google文档查看器( http://docs.google.com/viewer ),但它不适用于IE,显然这不适用于我。



任何人都有一个干净,简单的解决方案吗?



更新:我应该补充说,将PDF文件嵌入到Google查看器中的好处之一就是将其作为PDF文件我链接到更新(它可以不通知我),我的网站会自动保持相同的PDF文件(假设完整的路径名不会改变,它不会)。由于这个原因,将文件转换为图像并不是首选。

解决方案

既然你显然不想强迫某人下载臃肿的不安全pdf插件,为什么不让他们使用臃肿的不安全的Flash播放器?



http://flexpaper.devaldi。 com /



但实际上它仅仅是一个简单的例子

< iframe src =path / to / pdfwidth =500height =700>


I simply want to embed a PDF file in a web site.

The best solution I've found is Google Docs Viewer (http://docs.google.com/viewer), but it does not work for IE and obviously that is not going to work for me.

Anyone have a clean, easy solution to this?

Update: I should add that one of the benefits of embedding the PDF file the Google viewer way is that as the PDF file I link to gets updated (and it could without notice to me), my site would automatically be holding the same PDF file (provided the full pathname doesn't change, which it does not). For this reason converting the file to an image is not preferred while.

解决方案

Well since you obviously don't want to force someone to download the bloated insecure pdf plugin, why not let them use the bloated insecure flash player?

http://flexpaper.devaldi.com/

But really it is just a simple as

<iframe src="path/to/pdf" width="500" height="700">

这篇关于如何在网站中嵌入PDF文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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