How to Create PDF Links That Update When Pages Are Added
Question details
The user needs to create an internal index with links in a PDF (such as a songbook) that continue pointing to the correct content rather than a hard-coded page number, even after new pages are inserted.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Setting up an index or table of contents in a PDF document where the overall page count and layout may change over time.
- Observed behavior
- Links tied to hard-coded page numbers fail and point to the wrong content when new pages are inserted before the destination. The goal is to make links track the target content dynamically.
Ensure your PDF editor supports setting link destinations by page view rather than static page numbers, and verify you are not using custom JavaScript for basic navigation links.
Use the Go To View Link Action
Create links that target a specific view or content block so they automatically update when the document layout shifts.
When you link to a specific view or destination within a PDF, the software tracks that actual content block. If you insert or delete pages earlier in the document, the link will automatically adjust its underlying page reference to ensure you are taken to the correct content.
Open your PDF editor, activate the Link tool, and draw a rectangle over the text in your index you want to make clickable.
In the link creation prompt, select the action to go to a page view (often labeled 'Go to a page view' or 'Go To View') rather than entering a specific page number.
Before confirming the link, scroll through your document manually until the target content is visible on your screen.
Once the target content is in view, click the 'Set Link' button to lock in the destination. The link will now track this content even if pages are inserted.

Edit and Link PDFs Easily with WPS Office
WPS Office features a robust PDF editor that allows you to effortlessly create, manage, and edit hyperlinks within your documents, ensuring your indexes stay accurate even if you modify the file layout later.
- 1. Open your PDF: Launch WPS Office and open your PDF document.
- 2. Access the Link tool: Go to the 'Edit' tab on the top ribbon and select the 'Link' tool to insert a new hyperlink over your index text.
- 3. Set the destination: Choose the option to jump to a specific page or view within the document, navigate to your target destination, and confirm the link setup.

Frequently Asked Questions
Why do my PDF links go to the wrong page after I add new pages?
This usually happens if the links were created using scripts or specific actions that hard-code the page number (e.g., 'Go to Page 5'). When pages are added, the target content moves to a new page, but the link still incorrectly points to the old page number.
Can I fix existing PDF links that are broken?
Yes, but you will typically need to edit or recreate the broken links. Right-click the existing link, check its properties, and change the action from a hard-coded page script to a dynamic 'Go to a page view' destination.
Do bookmarks behave the same way as links when pages are inserted?
Yes, standard bookmarks in PDFs generally behave like 'Go To View' links. If you insert or extract pages, standard bookmarks will update automatically to reflect the new page location of the targeted content.
Does this dynamic linking work if I merge two PDFs?
If you merge PDFs using standard document assembly tools, 'Go To View' links and named destinations usually remain intact and automatically update their page references, provided the target content remains in the merged document.




