Embed PDF Viewer

Beskrivelse

Indlejre et PDF dokument fra Media biblioteket eller fra andetsteds via oEmbed eller som en blok inde i et objekt tag eller Google Doc Fremviser som alternativ. URL’en skal blot være offentlig tilgængelig.

Inspireret af Embed PDF og RV Embed PDF.

Mange tak til Alex Kirk for at gøre Embed PDF Viewer kompatibel med den nye blok editor.

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

Skærmbilleder

  • Embed PDF Viewer block
  • Select PDF
  • PDF block and attributes

Blokke

This plugin provides 1 block.

  • PDF

Anmeldelser

14. januar, 2023
Simple is what we were looking for. Simple is what we got. Works great. Tku
16. marts, 2021 1 reply
le meilleur plugin pour PDF. tellement simple qu'aucun clients ne m'a demandé quoique se soit pour l'intégration Youhou
21. januar, 2021
Worked extremely intuitively, very straightforward and user friendly.
21. september, 2020 1 reply
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.
Read all 14 reviews

Bidragsydere & udviklere

“Embed PDF Viewer” is open source software. The following people have contributed to this plugin.

Bidragsydere

“Embed PDF Viewer” er blevet oversat til 9 sprog. Tak til oversætterne for deres bidrag.

Translate “Embed PDF Viewer” into your language.

Interesseret i udvikling?

Gennemse koden, tjek SVN repository, eller abonner på udviklerloggen via RSS.

Ændringslog

2.3.0 / 2021-07-07

  • add @10up GitHub Actions integration for WordPress SVN

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 /build from make-pot in composer.json, 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