Skip to main content
Participant
March 25, 2021
Answered

PDF bookmark destinations do not update when PDF inserted into other PDF

  • March 25, 2021
  • 1 reply
  • 1446 views

When I insert a PDF at the end of another PDF, the bookmark destinations in the inserted the PDF do not update correctly.

 

For example, on its own, the PDF I want to insert has a bookmark pointing to page 10. The main, receiving, PDF has 100 pages. When I insert the PDF, the page-10 bookmark goes to page 10 in the main PDF. It's supposed to go to page 110. So Acrobat is not offsetting the destinations to account for the prior pages in the now-combined doc.

 

It's a problem with the file, not Acrobat. Is there a way to fix the file other than to manually offset every page number in every bookmark? It's over 2,500 pages and there are dozens and dozens of bookmarks.

 

I don't think it matters, but I'm using Pro DC, 2021.001.20145

This topic has been closed for replies.
Correct answer Bernd Alheit

What kind of links does you use at the bookmarks?

1 reply

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
March 25, 2021

What kind of links does you use at the bookmarks?

Eric5EBBAuthor
Participant
March 25, 2021

Ah, I figured it out. Well, your question prompted me to figure it out. 🙂

 

The PDF causing troubles is using JavaScript for bookmark destinations -- they're all hard-coded (e.g., this.pageNum= 18), which must be why they're all pointing to absolute page numbers after insertion into another PDF.

 

Thank you for responding!

try67
Community Expert
Community Expert
March 25, 2021

Yes, that would do it... If you're interested, I've created a (paid-for) standalone tool that will convert those links to "regular" links with a "Go to a page" action, which means they will update automatically if the file is edited.

You can find it here: https://www.try67.com/tool/convert-javascript-links-to-real-links