PDF Viewer Block for Gutenberg

Описание

A simple, responsive and 100% free Gutenberg Block to display PDF Viewers / Readers on your website.

You can easily configure the Reader’s width, height and alignment on the fly.

Compatibility:
— Fully responsive
— Works fine on Chrome, Firefox, Opera, Edge and IE11
— If javascript is disabled, a download link is provided as a fallback

This plugin uses PDF.js library, provided by Mozilla under Apache license.

Скриншоты

  • Adding «PDF Viewer» Gutenberg Block on my Post.
  • Selecting/Uploading a PDF document.
  • Basic front-end rendering.
  • Selecting alignement for my PDF Reader.
  • Applying custom width and height.
  • «PDF Viewer» variations showcase.
  • Front-end rendering for the selected variations.

Блоки

Этот плагин предоставляет 1 блок.

  • PDF Viewer A block to embed a PDF Viewer.

Установка

  1. Install the plugin and activate.
  2. No settings page: just enjoy your new Gutenberg block! It’s available in Embeds > PDF Viewer.

Отзывы

08.06.2025
It works without any problems on smartphones. It’s great that it’s highly functional yet simple and easy to use.However, if I may be greedy, I would like to be able to set default values ​​for height, etc. in the plugin settings screen.Also, I would like to be able to check the media file names of blocks embedded within blocks.
24.06.2021
Very easy to install and to use. No need to configure anything. And it works out of the box.
23.03.2021
A great block for PDF display but the block is incompatible with the current Microsoft edge browser and returns a false phishing warning page instead of PDF content. Works great in current Chrome browser. Will update to 5 stars when Edge is again supported properly.
17.04.2020
El mejor visor de pdf con todas las opciones incorporadas, responsive , un bloque muy sencillo de usar que no defrauda.
12.12.2019
This plugin does EXACTLY what I was wanting to do in terms of displaying PDF documents on my site, and I was willing to switch from the «classic» editor to Gutenberg because of it. Keep up the good work!
Посмотреть все 7 отзывов

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

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

Участники

«PDF Viewer Block for Gutenberg» переведён на 5 языков. Благодарим переводчиков за их работу.

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

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

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

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

1.1

  • Performances: Enqueue admin assets only when showing the block editor screen.

1.0.1

  • Fix XSS security vulnerability. Thanks @wpscan who responsively disclosed the issue.

1.0

  • Enqueue scripts and styles only when the block is displayed for better performance and Google Core Web Vitals compliance.

0.2

  • Declare support for WordPress 5.5 and Block Directory.

0.1

  • Plugin initial commit. Works fine 🙂