Other PDF Issues

How to Fix Web Links to PDF Bookmarks Containing Spaces

Nimra MalikNimra Malik Nov 2, 2026 870 views

Question details

Users are unable to use a web hyperlink to navigate directly to a specific PDF bookmark if the bookmark's name contains spaces.

How to Fix Web Links to PDF Bookmarks Containing Spaces
Product
PDF
Device & OS
not provided
Scenario
Creating web-based hyperlinks to open a PDF file and jump straight to a specific bookmarked section.
Observed behavior
The hyperlink successfully opens the PDF but fails to jump to the bookmark if the bookmark name has spaces. Encoding the spaces as %20 in the URL also fails to resolve the issue.
Before you start

Before attempting to fix the linking issue, ensure you have a PDF editor installed and possess editing permissions for the document, as you will need to modify internal bookmark names or destinations.

Solution 1Recommended

Remove or Replace Spaces in Bookmark Names

The most reliable method to ensure URL compatibility is to eliminate spaces from your PDF bookmark names entirely.

Many PDF viewers, including Adobe Acrobat, cannot properly parse spaces or URL-encoded spaces (%20) when matching a hyperlink to an internal bookmark. Renaming the target resolves this restriction.

1
Open the Bookmarks Panel

Launch your PDF editing software, open the document, and expand the Bookmarks navigation pane on the left side of the screen.

2
Rename the Target Bookmark

Right-click the bookmark you wish to link to and select 'Rename'. Remove all spaces or replace them with an underscore or hyphen (e.g., change 'Chapter One' to 'Chapter_One').

3
Update the Web Link

Modify your web hyperlink to match the updated, continuous bookmark name. Your new URL should look similar to 'http://example.com/file.pdf#Chapter_One'.

Remove or Replace Spaces in Bookmark Names
Manage PDF Bookmarks Easily

Edit and Organize PDF Bookmarks with WPS Office

WPS Office features an intuitive and powerful PDF editor that makes it incredibly easy to rename bookmarks, add internal links, and modify document properties to fix URL navigation errors.

  1. 1. Open Your PDF: Launch WPS Office and open the PDF file containing the problematic bookmarks.
  2. 2. Access Bookmarks: Click the Bookmark icon located on the left navigation sidebar to reveal the document's structure.
  3. 3. Rename to Remove Spaces: Right-click the specific bookmark, select 'Rename', and delete any spaces to make the name URL-friendly.
  4. 4. Save the Document: Click the 'Save' icon to apply the new structure, allowing your external web hyperlinks to function correctly.
Quickly edit, rename, and manage PDF bookmarks in a few clicksFully compatible with standard PDF formats from Microsoft and AdobeLightweight application with comprehensive built-in PDF viewing and editing tools
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't URL encoding like %20 work for linking to PDF bookmarks?

Many standalone PDF reader applications strictly parse bookmark targets in URLs and do not include the logic required to decode URL-encoded characters (like %20) back into spaces when matching against internal bookmark names.

Can I link directly to a specific page number instead of a bookmark?

Yes. If dealing with bookmark names is too restrictive, you can bypass them completely by linking directly to a page. Append '#page=[number]' to the end of your URL, such as 'http://example.com/file.pdf#page=5'.

Does this bookmark spacing issue happen in all web browsers?

The behavior often depends on the PDF viewer plugin the browser utilizes. While some modern built-in browser viewers might interpret spaces gracefully, linking to standard desktop PDF software usually requires space-free names for reliable navigation.