Skip to main content
April 19, 2017
Question

javascript to delete page when i delete the bookmark

  • April 19, 2017
  • 2 replies
  • 379 views

javascript to delete page when i delete the bookmark

This topic has been closed for replies.

2 replies

Joel Geraci
Community Expert
Community Expert
April 20, 2017

No event gets fired when a bookmark is deleted so you'll want to clean the bookmarks when the document saves, add a menu item, or create a custom command to trigger the process.

A script that demonstrates how to delete unused bookmarks is at the link below.

How to delete unused bookmarks from a PDF?

Bernd Alheit
Community Expert
Community Expert
April 20, 2017

What should happen when the bookmark doesn't point to a page?

What should happen when 2 or more bookmarks points to one page?