WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Mike Doherty v0.0.8

Vanilla PDF Embed

Embeds PDFs in your pages and posts, without using JS.

Vanilla PDF Embed

The facts

Rating
4.6★ from 32
Active installs
3k+
Price
Free
Last updated
8 Nov 2016
Added
Dec 2013
Requires WP
3.0.1
Tested up to
WP 4.5.0
Downloads
100,699

Our analysis

AI-assisted

Vanilla PDF Embed is a WordPress plugin that allows you to embed PDFs hosted in your site's media library directly into posts. You can either place the URL of the attachment page on its own line for a default embed or use the [pdf] shorttag for more customization options. This includes setting dimensions, titles, and specific display parameters for the PDF.

The plugin is suitable for users who want to share PDF documents on their WordPress sites without needing extensive coding knowledge. However, it does not support PDFs hosted on external websites, and the embedding functionality may vary across different web browsers due to security settings.

Best for: This plugin is best for WordPress users who need to embed PDF documents in their posts.

What it does well

  • Free to use from the WordPress.org directory
  • Allows embedding of PDFs from the media library
  • Customizable parameters using the [pdf] shorttag
  • Active installation count of 3,000

Where it falls short

  • Only works with PDFs uploaded to the site's media library
  • Embedding may not be well-supported across all browsers
  • Last updated in November 2016, which may affect compatibility with newer WordPress versions

Verdict

Vanilla PDF Embed provides a straightforward way to embed PDFs, but its limitations and lack of recent updates may affect usability for some users.

From the developer

Mike Doherty's own description of Vanilla PDF Embed, lightly tidied.

Basic use

To embed a PDF you’ve uploaded to your WordPress site’s media
library, simply put the URL for the attachment page in your
post on its own line. The PDF will be embedded with the
default settings at that location, as if it were using oEmbed.

Examples:

Post short URL:

http://localhost/?p=9

Attachment default URL:

http://localhost/?attachment_id=9

Attachment pretty URL:

http://localhost/test/report1/

Media direct URL:

Click to access report1.pdf

This doesn’t work for PDFs hosted on other websites, or if you
need to change the parameters.

Using the [pdf] shorttag

If the PDF isn’t in your WordPress site’s media library, or if
you want to customize any parameters for the embed, then use
the [pdf]...[/pdf] shorttag. Between the tags, you’ll provide
the URL for the PDF to embed. If the PDF is in your WordPress
site’s media library, you can either give the attachment page
URL, or the URL to the PDF file directly.

The [pdf] shorttag accepts several optional parameters:

  • width – sets the width of the frame the PDF is embedded in.
    By default, this is set to 100%.
  • height – sets the height of the frame the PDF is embedded
    in. By default, this is unset.
  • title – sets the title of the PDF, for use in the fallback
    link text.
  • open_params – sets the PDF open params
    which control how the PDF file is displayed in the embed frame.
    These are poorly supported in browsers.

Examples:

Post short URL: [pdf width="200px"]http://localhost/?p=9[/pdf]
Attachment default URL: [pdf height="500em"]http://localhost/?attachment_id=9[/pdf]
Attachment pretty URL: [pdf title="Report 1"]http://localhost/test/report1/[/pdf]
Media direct URL: [pdf]http://localhost/wp-content/uploads/2013/11/report1.pdf[/pdf]
Change PDF open params: [pdf open_params="page=10&view=Fit"]http://localhost/?p=9[/pdf]

Compatibility

The PDF should be embedded in the page, with the document scaled so it fills the
embed frame horizontally. Unfortunately, embedding PDFs is not well-supported.

Auto-loading embedded PDFs

Unlike with images, web browsers may not automatically download and display
embedded PDFs when the page is loaded. For security reasons, some users prefer
not to allow the PDF plugin to run unless they trust the website the PDF comes
from. This generally leaves a grey rectangle that the user may click on to allow
the PDF to be downloaded and displayed.

PDF open parameters

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for libraries and archives.

Starter Templates

The growing library of 300+ ready-to-use templates that work with all WordPress themes including Astra, Hello,...

Free 1M+ installs 4.9★ (4,745)
SVG Support

Securely upload SVG files to your media library, with built-in sanitization and advanced features for styling...

Free 1M+ installs 4.8★ (355)
Enable Media Replace

Easily replace any attached image/file by simply uploading a new file in the Media Library edit view - a real...

Free 600k+ installs 4.4★ (302)
Happy Addons for Elementor

HappyAddons packs Header Footer Builder, Megamenu, Single Post, Archive Page, & 500+ Ready Templates into...

Free 400k+ installs 4.8★ (487)
CMB2

CMB2

91

CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.

Free 300k+ installs 5★ (91)
Extendify

The best WordPress templates, pattern, and layout library with 1,000+ designs built for the Gutenberg block ed...

Free 500k+ installs 4.7★ (10)