Embed PDF Viewer

説明

Embed a PDF from the Media Library or elsewhere via oEmbed or as a block into an object tag or Google Doc Viewer as fallback. The URL only has to be world reachable link.

Inspired by Embed PDF and RV Embed PDF.

Many thanks to Alex Kirk for making Embed PDF Viewer compatible with the new block editor.

Development on GitHub. Pull requests are welcome against the develop branch.

ブロック

このプラグインは2個のブロックを提供します。

embed-pdf-viewer/index
Embed PDF Viewer
embed-pdf-viewer/embed-pdf-viewer
PDF

評価

2019年10月6日
This is a great PDF viewer/ embedder plugin, just works, and developer quickly fixed an issue I identified (https://wordpress.org/support/topic/uploading-from-within-block-doesnt-work/ ). Only problem is that it doesn't work too well on mobiles (seems to add a load of whitespace and revert to Google embed). So I now recommend and prefer https://wordpress.org/plugins/pdf-viewer-block/
2018年6月13日
This plugin works, but... THE PDF FILE CANNOT BE DOWNLOADED. This plugin uses Google Docs to embed PDF files instead of the browser's native PDF JavaScript code. There are no settings page to at least be able to change the size of the embed.
2018年5月19日
I love this plugin because it is so user friendly. There is any configuration what so ever. All I had to do is provide the URL of my document. Great Job!!!!!!
2018年4月19日
I will admit I did not try any of the other PDF embed plugins, but that's because I did not need to. This little piece of code did everything I needed. Nothing to configure, just paste in the link to your PDF. And it works on mobile! Thank you.
5件のレビューをすべて表示

貢献者と開発者

Embed PDF Viewer はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Embed PDF Viewer” は1ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Embed PDF Viewer” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

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