Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Setting Bookmark Destinations via scripting? To "fix" their position and remove JavaScript reference

Community Beginner ,
Jan 31, 2023 Jan 31, 2023

I have used programming to create bookmarks for multiple .pdfs. The problem is that the bookmarks were set via JavaScript to be relative to the document, i.e, this.pageNum=X. When I do further combinations, the bookmarks are thrown into disarray because the page numbers and size of the document change upon combination.

 

What I'm doing now, before combining files, is clicking each bookmark, then doing a right-click "Set Destination" to "fix" the bookmark to the current page. That fixes the problem, and removes the JavaScript from the destination. I can further combine those files and everything works.

 

However, this is manual and I was wondering if there was a way to automate this through scripting, or if it is not possible. 

 

Appreciate the insight of anyone who can help. 

TOPICS
JavaScript
309
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation