i> I create a hyperlink on pdf.
ii> While creating the hyperlink , data is added to the Annotation object using the following methods (Referring to the Annotation class which is within the Page class in package com.radaee.pdf)
Annotation annot = page.GetAnnot(index_anot);
annot.SetPopupSubject(documentName);
annot.SetPopupText(relativePathOfTheHyperlinkDocument);
iii> After the data is added to the Annotation object , I tried to pass Annotation data(i.e. annot object) to another method , so that we can display the thumbnail of the Hyperlinked document.
When I am trying to fetch the uri and documentName using the methods annot.GetPopupText() and annot.GetPopupSubject() respectively , both are returning null values, but surprising the annot object is not returning null.
iv> Now , as an alternative , I am not not passing the Annotation data(i.e. annot object) to another method and not displaying the thumbnail as in the earlier case.. Now if clicked on the Hyperlink annotation , the annot object is not returning null values for methods annot.GetPopupText() and annot.GetPopupSubject() and working fine.
Kindly explain the sequence when actually the Annotation data is actually saved with the Hyperlink annotation and how can we solve this issue ?