You don’t need a plugin to embed PDF documents on WordPress

Right now, I just needed to embed a PDF on a WordPress page. Simple, right? A cursory Google search led me to dozen plugins — in particular, Google Doc Embedder.

Don’t use the Google Doc Embedder plugin. It’s entirely unnecessary. Use the Google Docs embed code. It’s literally just one iFrame.

Here’s the code:
<iframe src="http://docs.google.com/gview?url=YOUR-URL-HERE&embedded=true"style="width:600px; height:500px;" frameborder="0"></iframe>

Leave a Reply

Your email address will not be published. Required fields are marked *