Skip to main content

Embed PDF Files on Your Blog

Have you noticed our PDF documents appearing on some of our blog posts? I create a PDF file (which may be a public speech or any other important document available in the public domain) and I upload that PDF to a storage service. I then make the file available in a blog post by embedding a specific piece of code. In this post, let me tell you ways you can embed PDF and by extension other files (spreadsheets, presentations, etc.) on your blog.

Let me make a riveting thrilling story from Sir Arthur Conan Doyle available to you through a PDF embedded file on this post. As a first step, if your document is not in the PDF format, you need to convert it. You can use any of the freely available PDF converters out there. Some popular PDF printers are CutePDF, BullZip Printer, PDF Creator, etc.

Once you have the PDF file ready, you can use any of these services to get it uploaded—Slideshare.net or a cloud storage service like Google Drive or Dropbox.

Slideshare Method


Slideshare is a platform for sharing document files, such as PDF, presentations, Word documents, spreadsheets, etc. Go to Slideshare and create an account. Alternatively, you can log in using your Facebook or LinkedIn account. Afterward, you can simply share documents with this service.

As a first step, upload your file to Slideshare.

slideshare pdf sharing platform

Once uploaded, Slideshare will convert the file; optionally, you can input the information that identifies the document, such as the tags, description, etc. This will enable the document to be indexed and searchable by search engines.

adding details to slideshare files

Once uploaded, the file will be available in My Uploads section. Click on the file and select the option ‘Embed’. It will give you the code for embedding it into your blog. You can remove the unnecessary links to Slideshare from the embed code and tweak it for width, height, margin, etc. Here it is:

embedding code from slideshare

<iframe allowfullscreen="allowfullscreen" frameborder="0" height="511" marginheight="0" marginwidth="0" mozallowfullscreen="mozallowfullscreen" scrolling="no" src="http://www.slideshare.net/slideshow/embed_code/15424875" style="border-width: 1px 1px 0; border: 1px solid #CCC; margin-bottom: 5px;" webkitallowfullscreen="webkitallowfullscreen" width="479"></iframe>

And you can paste the customized code on your blog’s HTML and show the PDF file to your visitors. Slideshare also gives you a shortcode that you can use directly with your WordPress blog.

Using Cloud Services


If you have a cloud account with Google Drive or Dropbox, you can upload and embed PDF documents. It works with any PDF-compatible cloud storage service.

As a first step, upload your PDF file to the cloud provider. For convenience, I will show you Google Drive interface here.

Google drive file upload


As the second step, you need to get the URL of the uploaded file. This is the direct link to the file. In Google Drive, you don’t even need this as it gives you the embed code directly from the ‘File’ menu of a PDF file. You should use that link in order to display the PDF.

In case of Dropbox, you should get the link of the file after uploading.

In Dropbox, after uploading the file, move it to the ‘Public’ folder so that it is accessible to anybody. From here, you can get the public link of the PDF file.

dropbox option copying public link

 Modify the following embed code to include your link.

<iframe height="480" src="Put your link here" width="640"></iframe>

Adjust the width and height and you are done! This will properly display your PDF file on your blog.

There is one other important consideration to this method. If your user’s browser doesn’t provide support for PDF, they will not be able view the file. It is necessary to instruct the customer to download the PDF plugin for their browser. Once it is done properly, you will get an end result similar to the following:

Popular posts from this blog

Technologies on Smartphones That You Should Look For

Apple has unveiled two underwhelming products with iPhone 5S and 5C . That was the major news for the last week. Although the devices completely lacked any inspiration, they have included two very important things—the touch ID sensor for security and the 64-bit architecture for better computing. Earlier we also mentioned what Apple should have done . In Android devices, we have a huge number of innovations too that we got to see in the past few months. In this article, let me discuss a few innovations that you have to look for in your next smartphone. 1. NFC Near Field Communication has always been regarded as a cutting edge technology. You can’t throw a stone now without hitting an Android device with NFC technology. It is a secure way that devices can connect by simply bringing them together. Right now, NFC has yet to find applications in the current smartphone market. The technology is not new, although it has yet to have any big applications. However, NFC has its importance.

Five Great Alternatives for iGoogle Home Page Portal

Google’s popular home page service, iGoogle will be retired on November 1st, 2013. That’s a little over a year of managing your home page through this service. It came as a great disappointment to me since I had been using the service for a long time. I have a nice home page set up in iGoogle with news from BBC, CNN, and others; my calendar; a widget for time management; topic-specific news on technology, stock quotes, weather; and some other interesting stuff. It was a page that I woke up to for many days. It seems obvious that the popularity of home page services has been coming down in the recent years; another popular service in this arena, Netvibes has turned into something else entirely. I could have turned my attention to Netvibes after they retire iGoogle, but that won’t happen now. I will miss Google’s home page, and before that I want to find out another portal service that I could love as I do iGoogle. In search for one, I found these great services which can replace iG

The Best Smartphone in the Market That You Can Buy Right Now

I am not talking about the smartphones that will be released in the coming months or days or the ones that are no longer available, but the ones that are in the market right now. You, as a smartphone customer, are looking for various factors to determine your purchase. Some of us want to get our work done quickly and effectively. Some of us want to read books and watch movies, and are looking for amazing screens. Some of us are interested in amazing build quality. Some others want to have their phones work everywhere, in all networks, in all plans. Well, there is a recipe for each requirement, but not one that satisfies all, I am afraid. Let’s take a look at the best of the lot in this post. Also, one thing to note, these smartphones are the ones with highest configuration out there. We have left out the low performance models completely. 1. The Most Productive The answer is simple. Apple iPhone. With over 750,000 apps available, iPhone has the one app ecosystem that has everythin