We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Finding the Duplicate Bookmarks and Hyperlinks in PDF by java code

Hi Team,

Is there a way to detect all the duplicate bookmarks and hyperlinks in the pdf document and delete the duplicated ones in java API?

We have encountered a situation where both name and target of the bookmarks are the same for multiple bookmarks.

also, the name, target, and dimensions of the hyperlinks are same for multiple hyperlinks.

@DevarajKP

We are afraid that there is no direct way to identify and remove duplicate bookmarks from the PDF document. Instead, you can extract bookmarks and hyperlinks and check them one by one to see whether two or more items are duplicate. Once it is found, you can remove them. Please also share your sample PDF with us so that we can test the scenario in our environment and address it accordingly.