There are two ways to display a PDF document. You can simply link to it and let the browser do all the work, or you can embed it in a page so it is part of your website.
Regardless of how you display the PDF, step one is to upload it into your Media Library (Media→Add Media File). It will automatically go in the Documents section of your Media Library.
Once uploaded, click on it in the Media Library. Note the File URL, with a handy button to copy the URL to the clipboard. So, when you need the URL, this is how to get it.
Display in Browser
Now that you have the URL, you can create a link or button as you would for any other web thingy that has a URL. Nothing new to learn. When the link or button is clicked, the browser displays the PDF. You can scroll it, download it, print it. Quick and easy. But it stands alone and does not look like part of your website. On the other hand, you do not have to set up a page for it. This is my preferred method unless I have a PDF I want to feature on its own page.
but I like to add download and print buttons:
Attributes
url (required): The URL of the PDF file.
- Default:
null - Example:
url="https://example.com/document.pdf"
- Default:
width (optional): Width of the PDF viewer.
- Default:
"100%" - Example:
width="80%"
- Default:
height (optional): Height of the PDF viewer.
- Default:
"842px" - Example:
height="600px"
- Default:
print (optional): Display a print button.
- Accepted values:
"true","false" - Default:
"false" - Example:
print="true"
- Accepted values:
title (optional): Title displayed above the PDF viewer.
- Default:
null - Example:
title="Document Title"
- Default:
download_btn (optional): Display a download button.
- Accepted values:
"true","false" - Default:
"false" - Example:
download_btn="true"
- Accepted values:
fullscreen_btn_text (optional): Text for the fullscreen button.
- Default:
"View Fullscreen" - Example:
fullscreen_btn_text="Open Fullscreen"
- Default:



