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

A Tablet Running Both Windows and Android Side By Side

The latest innovation from Samsung is the ATIV Q tablet, a streamlined 13-inch tablet that is extremely powerful and not that chunky for a tight competitor to the likes of Microsoft Surface Pro. It is thin, extremely powerful, and has a large brilliant QHD resolution screen, which is higher than Full HD. QHD is 3200x1800 pixels, while FHD is 1920x1280 pixels. Let’s take a brief look at this device. Technical Specifications The tablet-laptop mash-up is not yet in the market. We may update this post as it is made available in the market. Here are the brief technical specifications of the tablet. Display 13.3 inch; 3200x1800 px (the highest in the market); 16 million colors Processor Intel Haswell Core i5 processor (details unknown) RAM 4 GB Graphics Intel HD 4000 Storage 128 GB SSD Battery life 9 hours of usage Operating system(s) Android 4.2.2 Jelly Bean; Windows 8 ...

10 Worst Android Antivirus Apps You Can Get

Are you careful about the security of your smartphone? For your Android device, Google Play store offers a number of antivirus apps. There are paid and free apps from professional companies like Avast!, Kaspersky, and Lookout, as well as free antivirus apps that install and work relatively faster. Among the security apps found on the Play Store, there are a number of free, lightweight ones, most of which enjoy a great number of downloads and high ratings. Most of the ratings are done by people who find the interface easy to use, but have no idea whether the app actually works or not. Many of us feel the app is great if the interface is cool, don’t we? It is painful to note that most of these free apps not only fail at most antivirus tests, but experts regard them to be incapable of detecting any threat. Last year, the latest mobile antivirus test report was published by AV-Test.org , in which they tested and rated the best and the worst antivirus programs among multiple platforms. ...

Why Apple’s Retina Display No Longer Matters?

Apple trademarked Retina Display in Nov, 2012. Retina Display is one of the major attractions of Apple’s top products. Introduced with the iPhone 4, during Steve Jobs’s reign, it sure sold quite a number of iPhones in two years. At this time, however, is Retina Display still relevant? Should Apple be actively marketing this feature at all? Let’s see. What Exactly Is It? Retina Display or any display at that matter has a particular ppi ratio (Pixels Per Inch). [ Learn about pixels ]. If, on a display panel, there are more than a fixed number of pixels in every inch, that display will be rich enough to avoid the pixelation issue given by older, low pixel-density devices. If you can see individual pixels, such a display looks rather dull. Look at this image below. One of half of the Apple logo is pixelated, and you can see the difference. Creating too many pixels and cramming them up within a display is a very expensive job. This is the reason why mainstream smartphone manufacture...