Embed PDF Viewer

外掛說明

從媒體庫或透過 oEmbed、區塊將 PDF 嵌入至 object 標籤,或使用 Google Docs 檢視器作為後援。PDF 檔案網址必須是可公開存取的連結。

開發靈感來自 Embed PDFRV Embed PDF

非常感謝 Alex Kirk 所開發、與新式區塊編輯器相容的 Embed PDF Viewer。

這個外掛在 GitHub 上開發,歡迎對 develop 分支提出提取要求。

螢幕擷圖

  • Embed PDF Viewer 所提供的 [PDF] 區塊
  • 選取 PDF 檔案
  • [PDF] 區塊及屬性

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • PDF

使用者評論

2021 年 3 月 16 日
le meilleur plugin pour PDF. tellement simple qu'aucun clients ne m'a demandé quoique se soit pour l'intégration Youhou
2021 年 1 月 21 日
Worked extremely intuitively, very straightforward and user friendly.
2020 年 9 月 21 日
A really effective substitute for the other PDF embedder which seems to be over complicated. This one does all I need and allows printing and downloading without having to pay for the pro version. Thanks Andy, just what I needed.
2020 年 5 月 26 日
A light and very easy to use plugin, no shortcode, no fuss. Thanks ! the fullscreen feature is a bit surprising though, does not works as expected for me (Chrome), but never mind since it is easy to download it, or to zoom in. Plugin léger, pas de shortcode, on charge les PDF comme on charge les photos, directo depuis la biblio du site. Bouton pour imprimer + télécharger inclus, et le lien du doc apparait automatiquement sous la fenêtre. j'aime !
2020 年 5 月 16 日
No settings, just add the link of the PDF on a page or use a block. Had issue with the viewer width, but there's a simple solution for that as well, check this thread. Thanks!
2020 年 2 月 5 日
The pdf is cut in half. Have to scroll to read a full page. Not very many settings. Very limited in how it can be used. I can't use it. Still looking for a PDF viewer that just works. Apparently this is a very difficult thing to do cause there are no good ones out there 🙁
閱讀全部 11 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Embed PDF Viewer〉的開發相關工作。

參與者

Embed PDF Viewer 外掛目前已有 4 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

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

對開發相關資訊感興趣?

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

變更記錄

2.2.0 / 2021-03-05

  • update Toolbar to ToolbarGroup and ToolbarButton
  • add limited support for block alignment toolbar
  • fixes for i18n in block
  • exclude /blocks/build from make-pot, doesn’t work with minimized JS

2.1.2 / 2020-09-15

  • use same block name for oembed
  • add additional dependencies to enqueue

2.1.1 / 2020-07-20

  • update block for deprecated items and minor errors
  • update media selector for only PDFs

2.1.0 / 2020-07-20

  • update block build process
  • add title and description attributes for a11y
  • add PDF svg for block

2.0.5 / 2020-03-09

  • minor updates to plugin structure on GitHub
  • update tested to

2.0.4 / 2019-10-05

2.0.3 / 2019-04-25

  • move block registration to it’s own function and hook
  • WPCS updates

2.0.2 / 2019-02-03

  • update WordPress requirements

2.0.1 / 2019-01-11

  • added composer.json and automatically create POT with composer update
  • added check for register_block_type() for WP 4.9.x and below

2.0.0 / 2018-12-20 🎂

  • a proper PDF block was added with much help from Alex Kirk, many thanks

1.6.1 / 2018-11-25

  • properly initialize load_plugin_textdomain()

1.6.0 / 2018-07-22

  • added filter embed_pdf_viewer_pdf_attributes
  • updated readme.txt to include Requires PHP header
  • added paragraph tag around link to PDF

1.5.0 / 2016-12-17

  • added CSS to fallback to iframe on iOS as object isn’t scrollable 😛

1.4.0

  • switch to using object tag, with iframe as fallback display method

1.3.0

  • inserting anything other than PDF from Media Library now works as expected.

1.2.1

  • fixed a couple of PHP warnings

1.2.0

  • inserting a PDF from the Media Library now simply inserts the URL for oEmbed
  • oEmbed a PDF from any source

1.1.2

  • simplify instance() just a little more

1.1.1

  • rename instance variable to $instance and make private
  • update DocBlocks
  • ensure $atts is an array

1.1

  • bugfix for not returning media item when not PDF, Bad Andy 🙁

1.0.1

  • add to DocBlocks

1.0

  • refactor to put embed code in one function
  • add assets

0.1

  • initial commit