How to Open a Specific PDF Page from OneNote Using a Link
Question details
The user wants to open a PDF document to a specific page by clicking a local hyperlink in OneNote, but the application is removing the page identifier.

- Product
- Microsoft OneNote, PDF
- Device & OS
- not provided
- Scenario
- Creating a hyperlink in OneNote to a local PDF file that points directly to a specific page.
- Observed behavior
- OneNote removes the #page fragment from local PDF file paths, causing the PDF to open at the first page instead of the specified page in the default PDF reader.
Ensure your default PDF reader (such as Microsoft Edge or Adobe Acrobat) natively supports URL page fragments like '#page=5' before troubleshooting the hyperlink.
Use OneDrive or SharePoint HTTPS Links
Since Office applications strip the hash symbol from local file paths, uploading the PDF to a cloud service and using its HTTPS URL is the most reliable way to preserve the page fragment.
Microsoft Office fully supports the # symbol in standard web URLs. By moving your local PDF to OneDrive or SharePoint, you bypass the local file protocol limitations entirely.
Upload the target PDF file to your Microsoft OneDrive or SharePoint account.
Right-click the uploaded PDF in your web browser and copy its direct sharing link.
Open OneNote, select the text you want to hyperlink, and press Ctrl+K.
Paste the copied HTTPS link into the address field, and add '#page=X' (replace X with your target page number) at the very end of the URL, then click OK.

Encode the Hash Symbol in the Local Path
Manually encoding the '#' symbol as '%23' can sometimes force OneNote to pass the fragment to the default PDF reader without stripping it.
Try WPS Office for Seamless Document Management
If you frequently encounter linking limitations and formatting issues in Microsoft Office, consider switching to WPS Office. It provides a lightweight, highly compatible suite for all your document needs, including built-in advanced PDF reading and editing capabilities.
- 1. Download the software: Visit the official WPS website and click the download button for WPS Office Free.
- 2. Install WPS Office: Run the downloaded installer and follow the quick on-screen instructions to set up the suite.
- 3. Set as default: Set WPS Office as your default PDF reader and document editor to enjoy a unified workspace.

Frequently Asked Questions
Why does OneNote remove the # symbol from local file links?
Microsoft Office's hyperlink handling for the 'file://' protocol automatically strips the '#' character and anything following it. It treats the hash as an invalid character for a local file directory rather than a URL page fragment.
Can I use a batch script to open a specific PDF page from OneNote?
Yes. You can write a simple .bat file containing the command line to open your PDF reader with specific page parameters (e.g., msedge.exe "C:\file.pdf" /A "page=5"), and then hyperlink to that .bat file from OneNote.
Does URL encoding the hash symbol always work in OneNote?
No. Replacing '#' with '%23' works in some older versions of OneNote, but many users report that local file links still fail to parse the page number correctly in modern updates. Using an HTTPS link via OneDrive remains the most reliable method.
Does this link issue happen in Word and Excel too?
Yes, this is a universal Microsoft Office limitation. Word, Excel, and PowerPoint use the same underlying link-handling protocol that strips the '#' fragment for local file paths.




