This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Embed PDF


Will embed a PDF file using Google Docs Viewer
Simply include the URL for a PDF document on it’s own line, or wrapped in the embed tag like [embed][/embed] and the plugin will embed the PDF into the page using the Google Docs Viewer embed code.
The url must end with .pdf

Supported attributes in the embed tag are class id title height and width


  1. Upload dirtysuds-embed-pdf to the /wp-content/plugins/ directory
  2. Activate DirtySuds – Embed PDF through the ‘Plugins’ menu in WordPress
  3. That’s it. Now when you embed a PDF using the WordPress [embed] shortcode, the plugin will embed the document using the Google Docs viewer


How can I change the size of the PDF viewer?

If you want to change the default size of media embedded in a post, that can be done in the admin interface under Settings ⇒ Media Settings ⇒ Embeds

If you’d just like to change the size of one instance, you can use the standard attributes of the WordPress embed shortcode.

   [embed width="400" height="600"][/embed]
I have an idea for a great way to improve this plugin

Great! I’d love to hear from you.



Very easy to use and embedded files look great on pages!
Thank you so much 🙂

Works for what it is

I tested this in both chrome and firefox, it’s fine. I’m so excited there’s a plug-in for embedding .PDFs and it was super easy. Thank you!

Read all 18 reviews

Contributors & Developers

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


Translate “Embed PDF” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Bugfix


  • Changed URL for Google Docs Viewer to reflect change that Google made


  • Automatically enable auto-embeds on plugin activation


  • Added support for gdoc shortcode for compatibility with older plugins


  • Added support for class and id attributes (Thanks, Robert)


  • First version
  • Works