這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

PDF Viewer

描述

PDF Viewer is a WordPress plugin that allows you to embed PDF document on your site without using Flash plugin and only rely on JavaScript in order to work. This will make your website HTML5-compliant. This plugin is powered by Mozilla PDF.js script.

How to embed: Use shortcode like this [pdfviewer width=”600px” height=”849px”]http://full-url/document.pdf[/pdfviewer]

PDF.js is an HTML5 technology experiment that explores building a faithful and efficient Portable Document Format (PDF) renderer without native code assistance. The goal is to create a general-purpose, web standards-based platform for parsing and rendering PDFs. PDF.js development is community-driven and supported by Mozilla Labs.

螢幕截圖

  • PDF viewer in action.
  • Settings page for default values.

安裝

  1. Install from within WordPress plugin installer, or get from WordPress plugin repository
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Go to Settings > PDF Viewer to set default values for the plugin.
  4. Create or edit any page (or post) and insert the shortcode [pdfviewer][/pdfviewer].

常見問題

Is this supported on WordPress Multisite?

In simple words, YES. But if you are using domain mapping plugin, this only works when your backend URL is the same as the frontend. Means you have to make sure the document URL use the website public-facing domain name instead of the multisite domain.

評價

2021年1月29日
For now I find it excellent. Very simple. Please do not stop supporting. Good job.
2018年6月13日
While this plugin is free and basically works, it is difficult to use because you need to copy-paste the code for embedding the PDF plugin. An automatic code placement during attachment of PDF to post or page would solve this problem and earn the plugin 5 stars.
2017年8月8日
LOVE IT 😀 Get it 😀 [pdfviewer width="600px" height="849px" beta="true/false"]https://*****.pdf[/pdfviewer]
2017年6月3日
After 3 month of usage i can say that it is one of the useful plugin and also i can give my rating as 5 stars. Best plugin to display pdf files.
2017年1月7日
Easy to use and makes it much easier to view a pdf right on the post. It's not mobile friendly, (if it's only one page, there is a lot of gray space on mobile.) However, I was able to work around this with containers and css.
閱讀全部14個評價

貢獻者及開發者

“PDF Viewer” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 PDF Viewer 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.1.0

  • Updated PDF.js to latest version 3.2.146

1.0.1

  • Fixed PDF.js not loading correctly

1.0.0

  • Updated PDF.js to latest version 3.1.81
  • Removed beta version of PDF.js as no longer available
  • Fixed potential XSS by contributor role. Thanks to WPScan for responsible disclosure.

0.1

  • Initial release.