SharePoint 2010 - Content Editor Web Part as FREE PDF viewer

If you want to show PDF file in SharePoint site, under browser window itself, below are the simple steps to get that done:
  • Open your SharePoint Site and edit the page
  • Add  a content editor webpart on the page.
  • Add follwoing html (including embed tag) code in that.
<embed allowtransparency="true" frameborder="no" scrolling="no" src="http://localhost/Documents/myPDFFile.pdf" style="height: 900px ! important; width: 100% ! important;"></embed>
  • Save the page.

This will show your PDF in SharePoint website.

Click here to read original article

No comments:

Post a Comment