该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

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.

评价

2021 年 6 月 24 日
Very easy to install and to use. No need to configure anything. And it works out of the box.
2021 年 3 月 23 日
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.
2020 年 4 月 17 日
El mejor visor de pdf con todas las opciones incorporadas, responsive , un bloque muy sencillo de usar que no defrauda.
2020 年 3 月 19 日
Excellent! Avesome! Works like a charm!
2019 年 12 月 12 日
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!
2019 年 10 月 6 日 1 回复
This plugin is currently the best way to embed PDFs into posts/ pages etc. It has a simple block which just works. The only thing I’d say is that it’d be nice if it also displayed the embedded PDFs in the edit view too (like this one does https://wordpress.org/plugins/embed-pdf-viewer/ but that one also has an issue, see https://wordpress.org/support/topic/uploading-from-within-block-doesnt-work/ ) (that issue now resolved so given that plugin 5 stars and downgraded this to 4 stars to reflect the fact Embed PDF viewer is not my favourite plugin for doing this) Actually, this plugin works a lot better on mobiles than Embed PDF viewer, and so this my favourite again so upped this back to 5 stars 🙂 I’d still like to see the PDF embed in edit view in this plugin too though.
阅读所有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 🙂