Friday, January 18, 2008

Displaying Pdf document in SharePoint Page

Pdf documents can be displayed in SharePoint site with the use of “Content Editor Web part”. To know more about "Content Editor Web part", I suggest you to read this post, where you will get to know about playing a video in SharePoint site.

Add a “Content Editor Web part” to your SharePoint page, Click on the “Open the Tool Pane”, click on “Source Editor” to place the HTML source.
Place the following piece of code in to the Source Editor



In the above code, “src” points to a source location, the location can be a HTTP or a UNC path. I’ve stored my Pdf document in my document library and used the Http location of my Pdf file. Also Set the Height and Width properties and click on “Ok”.





The above image shows the embedded Pdf document to a SharePoint page.

5 comments:

Joren~FX said...

hi. I tried this and it doesn't seem to display the pdf. What do you think could be the problem.

Joren~FX said...

Please help

Zabiullah Sheik Ismail said...

Warren, Do you have adobe reader installed? if not then install it.

Joren~FX said...

Hi there, Me again.

I ok.. I got it to work... thanks for the code hey....

Ok heres my tiny ammendmend/suggestion.

To enable the pdf document to fit the window opposed to a FIXED WIDHTH. Set the WIDTH to 100%... like this

width="100%"

ok... thanks again man....

thu said...

hi, i got this to work also but how do you hide the Adobe navigation in the background and just display the pdf?