다음을 통해 공유


SharePoint 2010: How to Embed PDF and Text File Contents into Pages

Embed PDF in a SharePoint Wiki Using a Content Editor Web Part

Presented a requirement where some of the site administrators wanted to show contents from PDF and text files to many pages in our SharePoint sites. The content was either text or images. There is always a way to add this under the page controls and pods but it was not an effective way of doing so since for any change in the requirement it has to be carried out in all pages manually. Used the content editor web part to display the text. The file was stored in a document library and it was being referred to a content editor web part so any changes in the file will be reflected in the pages as well. To refer the file in my content editor web part used the following script in source editor of a web part:

<iframe width="560" height="345"  src="FileUrl"  frameborder="0"  ></iframe>

The height and width can be changed based on your requirement.

Embed PDF in a SharePoint Wiki Using a Page Viewer Web Part

A PDF document can be inserted in a SharePoint Wiki page by using a Page Viewer web part as follows:

  1. Upload the PDF file to a SharePoint library.
  2. Edit the Wiki page where the PDF has to be embedded and insert a Page Viewer web part.
  3. Edit the basic properties of the web part to give the PDF URL, web part title and a height specification.

More details and screenshots are in this blog post:

Other Languages

This article is also available in the following languages: