Fix SharePoint Online PDF Fragment Links Opening the First Page
Question details
A user's cross-document PDF links stored in SharePoint Online are failing to navigate to specific sections, loading only the first page of the target document.

- Product
- SharePoint Online, PDF
- Device & OS
- not provided
- Scenario
- The user is clicking a hyperlink within a PDF that contains a fragment (e.g., xxx.pdf#SectionB) meant to open a specific section of another PDF in the same SharePoint environment.
- Observed behavior
- The target PDF document opens successfully in SharePoint Online, but it defaults to the first page rather than navigating to the specified fragment or section tag.
Verify the exact URL structure being used for the fragment link and ensure you have correct view permissions for both the source and destination PDF documents in your SharePoint library.
Test Locally and Use Supported URL Parameters
Determine if the issue is with the PDF file itself or SharePoint's web viewer by testing locally, then adjust the link format if necessary.
SharePoint Online's native web-based PDF viewer frequently ignores URL fragments (such as named destinations or section tags like #SectionB). This causes the document to default to the first page. Isolating whether this is a file encoding issue or a platform limitation is the crucial first step.
Select both the source and destination PDF documents in SharePoint Online and download them to your local computer.
Open the source PDF using a dedicated desktop PDF reader. Click the link to see if it successfully jumps to the intended section in the destination document.
If the link works locally but fails in SharePoint, edit the hyperlink in the source PDF to use standard page number parameters (e.g., #page=5) instead of named section tags, as page numbers have broader web viewer compatibility.
Force PDFs to Open in the Client Application
Bypass the SharePoint web viewer entirely by configuring your document library to open files in the desktop client application by default.
Use WPS Office to Accurately Read Cross-Document PDF Links
When web viewers like SharePoint fall short in handling complex PDF navigations, relying on a robust desktop PDF editor ensures your interactive document features work flawlessly. By syncing your SharePoint files locally, WPS Office can accurately interpret PDF fragments and cross-document links.
- 1. Install WPS Office: Download and install the free WPS Office suite on your local computer.
- 2. Sync your SharePoint Library: Use the OneDrive sync client to sync your SharePoint document library to your PC.
- 3. Open with WPS PDF: Navigate to the synced folder in File Explorer, right-click your source PDF, and select 'Open with WPS Office'.
- 4. Navigate seamlessly: Click the internal cross-document links. WPS PDF will seamlessly open the destination document to the exact section or page you specified.

Frequently Asked Questions
Why do PDF page parameters like #page=3 work in my Chrome browser but not in SharePoint Online?
SharePoint Online intercepts PDF clicks and renders them using its own proprietary web-based document viewer, rather than handing the file directly to your browser's native PDF engine. The SharePoint viewer often drops or fails to parse advanced URL parameters and named destinations.
Can I link directly to a specific word or unanchored text string in a PDF stored on SharePoint?
No, standard PDF hyperlink functionality relies on predefined named destinations (bookmarks/anchors) or specific page numbers. You cannot dynamically link to arbitrary text strings using URL fragments in a PDF.
How can I properly create a named destination for a cross-document link?
You need to use a dedicated desktop PDF editor like WPS Office. Within the editor, navigate to the target page, create a new Bookmark or Destination point, assign it a specific name (like 'SectionB'), and then use that exact name as the fragment in your source document's hyperlink.




