How to Embed A PDF into A Webpage
Adding PDF file in a webpage within SharePoint
Materials Needed:
- A Text File .txt
- Content Editor Web part
- A SharePoint Page
The first step to showing the PDF within a webpage is to store the PDF on your SharePoint site where users will be able to access it. Once you have uploaded your PDF copy the URL for the newly uploaded PDF file.
After you have uploaded the file, create a new text .txt document in Notepad. Insert the below code into your text file, but replace the “Your PDF URL HERE” with the URL of your PDF File. Make sure to leave the “ “at each end since that is needed.
<embed src=”YOUR PDF URL HERE.pdf” style=”width: 100%!important; height: 1000px! important; style=”z-index:-5;” scrolling=”no” frameborder=”no” allowtransparency=”true”>
Now that the file has been created, store the text file somewhere on your SharePoint site library so we can link a content editor Web Part to it
Place the content editor Web Part on your page and link it to the text file that you just uploaded, apply the changes, and save the page.
You should now your PDF within the browser.
RELATED POSTS
Offline SharePoint document library sync
How to sync a SharePoint document library to Outlook for offline editing when you areRead More
Co-Editing Excel via web editor in SharePoint
How to use the web editor in SharePoint to collaboratively and simultaneously edit an ExcelRead More