> PDF Embedder wordpress plugin resources analysis

PDF Embedder wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name PDF Embedder
Version 1.0.4
Author Dan Lester
Rating 100
Last updated 2015-02-10 12:32:00
Downloads
5137
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
PDF Embedder plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

PDF Embedder plugin added 3 bytes of resources to the Home page and 2 bytes of resources to the sample Post page.

PDF Embedder plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! PDF Embedder plugin ads no tables to your Wordpress blog database.

Upload PDFs and embed them straight into your site - just like adding images! PDFs will be automatically sized to their natural size and shape (or just fill the width available if they are too big). Optionally, you can specify a width and the correct height will be calculated automatically. The shape will be recalculated if the page is resized by the user.

The plugin has a unique method for embedding PDFs, using Javascript only, and not using iframes or third-party services. This gives a lot of flexibility over the appearance of your document, and for development of the viewer going forward.

The viewer currently has Next/Prev buttons to page through the document, and more viewer functionality will follow. There is no button to download the entire PDF (but of course a savvy user will be able to obtain the content since it is displayed to them).

It uses a customized version of Mozilla's PDF.js project, but embeds it within your existing WordPress pages so we have full control over appearance. Other plugins may use similar technology, but they will insert the PDF itself into an 'iframe' which means they do not get the flexibility over sizing.

Secure PDF Embedder

Protect your PDFs with our premium version - PDF Embedder Secure

Our premium PDF Embedder Secure plugin provides the same simple but elegant viewer for your website visitors, with the added protection that it is difficult for them to download or print the original PDF document.

This means that your PDF is unlikely to be shared outside your site where you have no control over who views, prints, or shares it.

See our website wp-pdf.com for more details and purchase options.

Usage

Once installed and Activated, click Add Media from any page or post, just like adding an image, but drag and drop a PDF file instead.

When you insert into your post, it will appear in the editor as a 'shortcode' as follows:

[pdf-embedder url="https://mysite.com/wp-content/uploads/2015/01/Plan-Summary.pdf"]

You can optionally override width and height as follows:

[pdf-embedder url="https://mysite.com/wp-content/uploads/2015/01/Plan-Summary.pdf" width="auto"]

Note the default value for width is 'max'.

Resizing works as follows:

  • If width='max' the width will take as much space as possible within its parent container (e.g. column within your page).
  • If width='auto' the width will be equal to the 'natural' width of the PDF document contents (i.e. however width the PDF says it should be by default).
  • If width is a number (e.g. width='500') then it will display at that number of pixels wide.

In all cases, if the parent container is narrower than the width calculated above, then the document width will be reduced to the size of the container.

The height will be calculated so that the document fits naturally, given the width already calculated.

It is possible to specify a fixed height (e.g. height="200"), in which case the document may be cut off vertically and will need to be scrolled to see the whole page. The height will be reduced to fit if it is larger than needed to display the document correctly.

Screenshots

Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
Northern-Web-Coders screenshot

Northern-Web-Coders

by: jaman

21015
0%
Max Magazine screenshot

Max Magazine

by: gazpo

120362
80%