将 PDF 文档嵌入网站

发布于 2024-08-14 03:08:01 字数 237 浏览 2 评论 0原文

我需要将一些 PDF 文档嵌入到网站中。上次我这样做时,我使用 jQuery lightbox 弹出一个以 PDF 文档作为 URL 的 iFrame。然后,客户的 PDF 查看器将处理剩下的事情。

但显然,这在其他一些人的浏览器上有点问题。我猜想这是由于 PDF 文件较大以及他们的计算机启动 Adob​​e 所花费的努力。

所以我正在寻找如何解决这个问题的想法。你们如何将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

青瓷清茶倾城歌 2024-08-21 03:08:01

我经常使用 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.

蓝海 2024-08-21 03:08:01

我们使用了 Docuter
它们让您可以嵌入和跟踪

We have used Docuter
They let you embed and track

等待圉鍢 2024-08-21 03:08:01

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文