将 PDF 文档嵌入网站
我需要将一些 PDF 文档嵌入到网站中。上次我这样做时,我使用 jQuery lightbox 弹出一个以 PDF 文档作为 URL 的 iFrame。然后,客户的 PDF 查看器将处理剩下的事情。
但显然,这在其他一些人的浏览器上有点问题。我猜想这是由于 PDF 文件较大以及他们的计算机启动 Adobe 所花费的努力。
所以我正在寻找如何解决这个问题的想法。你们如何将 PDF 嵌入到网站中?或者您只是坚持添加下载链接?
I need to embed some PDF documents into a website. The last time I did this, I used a jQuery lightbox to popup an iFrame with the PDF document as the URL. The client's PDF viewer would then take care of the rest.
Apparently though, that was a bit buggy on some other peoples browsers. I guess it was due to the large PDF file sizes and the effort it took for their computers to fire up Adobe.
So I'm after ideas on how to go about this. How do you guys embed your PDF's into websites? Or do you just stick to adding a download link?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我经常使用 scribd 来解决这个问题。
您必须将文档(可以是 PDF、DOC 或其他内容)上传到您的 scribd 帐户,该服务可以在 Flash 环境中查看此 (pdf) 文档(完美嵌入灯箱)。
对于此解决方案,您的文档需要第三方服务 (scribd),但通过他们的 API,可以在您自己的网站中包含所有 scribd 功能。
I often use scribd to solve this issue.
You have to upload your document (can be PDF, DOC or something else) to your scribd account and the service makes it possible to view this (pdf) document in a flash environment (perfectly embedabble with lightbox).
For this solution, a third party service (scribd) is required for your documents, but with their API it's possible to include all scribd functionality in your own website.
我们使用了 Docuter
它们让您可以嵌入和跟踪
We have used Docuter
They let you embed and track
我在 Flash 中使用过 Google 文档:http://trajctrl.tyblu.ca/?page_id=2< /a>
它有点问题,但我发现如果你稍微扭动图像,即:缩放、单击等,它就可以工作。下载链接也在附近,以防万一。不太确定它是如何完成的,因为它是一个 Wordpress 插件(Google Doc Embedder),但我想 Google 在某个地方有一个 API。
I've used Google Docs in Flash: http://trajctrl.tyblu.ca/?page_id=2
It's a bit buggy, but I find it works if you wiggle the image a bit - ie: zoom, click, etc. Download link is nearby just in case, too. Not exactly sure how it was done, as its a Wordpress plugin (Google Doc Embedder), but I imagine Google has an API somewhere.