Recently I was asked by a client to see if you can embed a PDF into a SharePoint page. It turned out to be surprisingly easy!
I am assuming that you are using Wiki pages in your team sites in this example. Either way you have to put the embedded code into a Content Editor Web Part for this to work. If you put the code to a standard page then SharePoint will strip out the tags and this will not work
First you need to find the URL to the PDF that you wish to view, after that you are ready to go!
Add a Content Editor Web Part to the page
Click on the ‘Edit HTML Source’ button for the Content Editor Web Part (not the page)
Add the following code:
<object><embed src="FILENAME.PDF" height="850" width="850" type="application/pdf"></embed></object>
- src = The URL of the file, remember to put in a server relative URL to this!
- height = height of the rendered PDF
- width = width of the rendered PDF
Click on Save and you should see your PDF rendered out just like the example below! By the way this book by Phil Wicklund is awesome, check it out here.
Category: How To