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.

Hi @asad.ali

Thanks for your response, please find the attached document which has duplicate bookmarks and hyperlinks, I want remove the both duplicate book marks and hyper link in my project req using java, can please look into and suggest the possible way to achieve the same.

hyp-book.pdf (32.4 KB)

@DevarajKP

We have opened the following new ticket(s) in our internal issue tracking system for further analysis on your requirements. We will deliver their fixes/investigation results according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFJAVA-42467

Please be patient and spare us some time. We are sorry for the inconvenience.