How to Remove the OneDrive Banner from an Embedded SharePoint PDF
Question details
The user wants to prevent a OneDrive banner from appearing when embedding a PDF document into a SharePoint page using the File and Media Web Part.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Embedding a PDF file into a SharePoint site page using the File and Media Web Part.
- Observed behavior
- A OneDrive banner appears at the top of the embedded PDF, which the user wants to remove for a cleaner display on the SharePoint page.
Ensure you have edit permissions for the target SharePoint site and access to the site's Document Library where the PDF will be hosted.
Move the PDF to the SharePoint Site's Document Library
Hosting the PDF directly in the SharePoint document library rather than OneDrive prevents the OneDrive banner from appearing in the iframe embed.
The File and Media Web Part embeds files using an iframe. When linking directly to a file hosted in OneDrive, the default behavior includes the OneDrive banner. Moving the file to the SharePoint Site library resolves this display issue.
Download the PDF file from your OneDrive or locate the original file on your local drive.
Open your target SharePoint site and click on 'Documents' in the site navigation to access the document library.
Click the 'Upload' button and select 'Files' to upload the PDF directly to the SharePoint site's document library.
Navigate to the SharePoint page where you want to embed the file and click 'Edit' in the top right corner.
Add or edit the 'File and Media' Web Part. When prompted to select a file, click the 'Site' tab (instead of OneDrive) and select the PDF you just uploaded.

Edit and Prepare PDFs Easily with WPS Office
While SharePoint handles your web embedding, WPS Office provides a lightweight, free alternative for creating, editing, and converting PDF documents before you upload them.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite.
- 2. Open and Edit Your PDF: Launch WPS Office, open your PDF document, and use the robust PDF toolkit to make any necessary edits or annotations.
- 3. Save and Upload: Save your optimized PDF locally, then upload it directly to your SharePoint Document Library for clean embedding.

Frequently Asked Questions
Why does the OneDrive banner appear in my embedded SharePoint PDF?
When you use the File and Media Web Part to embed a file hosted in OneDrive, SharePoint loads the file in an iframe using OneDrive's native viewer, which inherently includes its default branding banner.
Can I remove the banner if the PDF must remain in OneDrive?
Usually, no. The banner is part of the default OneDrive embedding behavior. If your administrator has locked down embedding settings and requires files to stay in OneDrive, you may have to accept the banner.
How do I select the file from the Site tab?
When you add the File and Media Web Part to your SharePoint page, a file picker window appears. On the left side of this window, click 'Site' to browse files hosted natively on the current SharePoint site's document library instead of choosing 'OneDrive'.




