How can we help you today?

How to Embed a PDF into a Modern SharePoint Page

Embedding PDFs into modern SharePoint pages is very simple with the use of ShortPoint Code Editor Web Part. All you have to do is follow the quick walkthrough or go through the detailed guide in the Step-by-Step Tutorial.


sample page with PDF embed


Quick Walkthrough

1. Go to your PDF file and copy its URL.

2. Copy the code below and replace the src value with the URL you copied from Step 1:

<iframe width="1000" height="500"
src="https://PDFURL.com">
</iframe>

3. Go to your SharePoint page and add the ShortPoint Code Web Part.

4. Click the Edit Properties icon of the ShortPoint Code to edit it.

5. Click Import Code to paste the code.

6. Select the Edit HTML field to customize the code according to your needs. Once done, click Save.

7. Close the ShortPoint Code window.

8. Republish the page.


TABLE OF CONTENTS


Prerequisite


Step-by-step Tutorial

Follow the steps to learn how to embed a PDF into your SharePoint site:


Step 1: Copy the PDF URL

  • Go to the PDF you want to use and copy its URL:


copy PDF URL


Step 2: Copy Code

  • Copy the code below and replace the src value with the URL you copied from Step 1:
<iframe width="1000" height="500"
src="https://PDFURL.com">
</iframe>

Step 3: Add the ShortPoint Code Web Part

  • Go to the SharePoint page where you want to add the PDF and click Edit:

Edit


  • Click the close icon to leave the Toolbox:

close icon


  • Select the plus icon to add a web part:

plus icon


  • Use the search bar to look for ShortPoint Code, or scroll down until you see the Advanced section. Click ShortPoint Code:

ShortPoint Code


Step 4: Edit the ShortPoint Code Web Part

  • Click the Edit Properties icon:


Edit properties icon


Step 5: Paste the Code

  • Click Import Code:

Import Code


  • You will get a pop-up asking if you want to overwrite the current code with the code in your clipboard. Click OK:

OK


  • You will get a notice that the code was successfully imported from your clipboard. Click OK again:


OK

  • You can directly edit the code in the code editor. Simply select the Edit HTML field, freely customize the code according to your needs, and click Save:

edit PDF


Step 6: Republish Page

close icon


  • Click Republish once you’re ready to make your changes live:

Republish


Congratulations! Adding PDFs to your SharePoint pages is now a breeze. Find more ways to improve your SharePoint pages using the ShortPoint Code Editor by checking the articles below:


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 24 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more