Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Embed PDF Viewer

Embed a PDF from the Media Library or elsewhere via oEmbed into an `object` tag or Google Doc Viewer as fallback.

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

Inspired by Embed PDF and RV Embed PDF.

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

Author Andy Fragen
Profile
Contributors afragen
Tags embed, oembed, pdf, viewer
  1. Upload the entire /embed-pdf-viewer/ folder to the /wp-content/plugins/ directory.
  2. Activate the plugin.

1.5.0 / 2016-12-17

  • added CSS to fallback to iframe on iOS as object isn't scrollable :P

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
Share  
Download
Version 1.5.0

Requires WordPress version: 4.0 or higher

Compatible up to: 4.7.2

Last Updated 17 Dec 2016

Date Added: 31 Mar 2016

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

0 stars
0 ratings
3,722 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0