Этот плагин не тестировался с последними 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» beta=»true/false»]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].

Часто задаваемые вопросы

Installation Instructions
  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].
Why there is a beta version?

Beta version contains latest updates but may need to be tested. You can try to use the beta version of the viewer if your document could not be rendered properly. You can also use the beta version on selected document only by using beta=»true» in the shortcode.

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.

Отзывы

13.06.2018
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.
08.08.2017
LOVE IT 😀 Get it 😀 [pdfviewer width="600px" height="849px" beta="true/false"]https://*****.pdf[/pdfviewer]
03.06.2017
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.
07.01.2017
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.
Посмотреть все 13 отзывов

Участники и разработчики

«PDF Viewer» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «PDF Viewer» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

0.1

  • Initial release.