WonderPlugin PDF Embed

Description

WonderPlugin PDF Embed

WonderPlugin PDF Embed is a plugin to embed and display PDF files on your WordPres website by using Mozilla’s PDF.js.

Features

How to Use

You can use the following shortcode to embed a PDF file to WordPress posts or pages:

[wonderplugin_pdf src=”http://www.yourwordpresssite.com/yourdoc.pdf” width=”100%” height=”600px” style=”border:0;”]

PDF URL Requirements

  • The PDF file MUST be hosted on the SAME DOMAIN as the WordPress website.
  • The PDF URL MUST be an absolute URL, that’s, the URL must start with http:// or https://.
  • Make sure there are no special characters in the PDF URL, for example, apostrophes, double quotes, accented letters etc.
  • The PDF URL is defined with the src attribute.

Shortcode Attributes

  • You can use px or % for the width and height attributes, for example, 600px or 100%.
  • By using % for the width attribute, the PDF viewer will be responsive.
  • If you use 100% for the height attribute, make sure the container of the shortcode has a proper height value.
  • You can use the style attribute to define the CSS style of the PDF viewer which is an iframe.

For more information, please view the online tutorial: https://www.wonderplugin.com/wordpress-pdf-embed/#tutorial

Open a PDF file in a lightbox popup

Please view the online document: https://www.wonderplugin.com/wordpress-pdf-embed/#lightbox

Create a PDF carousel

Please view the online document: https://www.wonderplugin.com/wordpress-pdf-embed/#carousel

Installation

Install the plugin in WordPress backend

  1. In WordPress backend, go to menu Plugins -> Add New
  2. Search WonderPlugin PDF Embed
  3. Install the plugin

Install the plugin with downloaded plugin zip file

  1. In WordPress backend, go to menu Plugins -> Add New
  2. Click the link Upload Plugin
  3. Select the plugin zip file, then click Install Now

Uninstall the plugin

  1. In WordPress backend, go to menu Plugins -> Installed Plugins
  2. Deactivate the plugin
  3. After the plugin is deactivated, Delete the plugin

FAQ

Installation Instructions

Install the plugin in WordPress backend

  1. In WordPress backend, go to menu Plugins -> Add New
  2. Search WonderPlugin PDF Embed
  3. Install the plugin

Install the plugin with downloaded plugin zip file

  1. In WordPress backend, go to menu Plugins -> Add New
  2. Click the link Upload Plugin
  3. Select the plugin zip file, then click Install Now

Uninstall the plugin

  1. In WordPress backend, go to menu Plugins -> Installed Plugins
  2. Deactivate the plugin
  3. After the plugin is deactivated, Delete the plugin
I received the error “An error occurred while loading the PDF” or “Missing PDF file”

Please check your PDF URL and make sure it complies with the following requirements:

  1. The PDF file MUST be hosted on the SAME DOMAIN as the WordPress website.
  2. The PDF URL MUST be an absolute URL, that’s, the URL must start with http:// or https://.
  3. Make sure there are no special characters in the PDF URL, for example, apostrophes, double quotes, accented letters etc.

Contributors & Developers

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

Contributors

Changelog

1.0

  • First version released