Thursday, January 23, 2014

Display PDF Files in Content Editor Web Part

We can display PDF files inside content editor web partHere is how: add a Content Editor web part to the page and place the object tag as below in HTML Source of the content editor web part.

Using Object Tag to display pdf document in CEWP:
?
1
2
3
<object width="400" height="500" type="application/pdf"
data="http://sp10.Crescent.com//MCM/Documents/Pre-Reads.pdf?#zoom=75&scrollbar=1&toolbar=1&navpanes=1"
 id="pdf_content">
sharepoint pdf content editor web part
show pdf file in content editor web part

and the output on web page: pdf file in content editor web part
sharepoint display pdf in web part
Using Embed Tag: 
This can be achieved using embed tag as well. 
<embed src="http://sharepoint.company.com/documents/SharePointMCM.pdf" width="500" height="375">

Reference:

http://www.sharepointdiary.com/2012/05/display-pdf-inside-content-editor-web.html

No comments:

Post a Comment

Image noise comparison methods

 1. using reference image technique     - peak_signal_noise_ratio (PSNR)     - SSI 2. non-reference image technique     - BRISQUE python pac...