I am using ItextSharp for searching internal links in a PDF file. This is already done with External Links.
You've already done most of the work. Please take a look at the following screen shot:
You see the
/Annots array of a page. You are already parsing that array in your code
and you skip all annotations that aren't of the
/Link or don't have an
/A key, which is excellent.
Currently you're only looking for values of
/S that are of type
You say you're already done with external links, but that's not true:
you should also look for entries where
/GoToR (remote goto).
If you want internal links, you need to look for
/S values equal to
and (in the future)
/GoToDp. Maybe you also want to remove the
because they can also be used to jump to a specific page.