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 個可供 Gutenberg/區塊編輯器使用的區塊。

  • 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.

使用者評論

2025 年 6 月 8 日
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.
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!
閱讀全部 9 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈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 🙂