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)
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 ?
sorry for the delay.
We have tested annot.GetPopupText() and annot.GetPopupSubject() from different method and they seem to pass data and work properly.
Have you tried with the last version of the library?
Can you please send us more detail about how to get this issue?
When you try to get the uri and the documentName are you sure to retrieve them from the correct annotation?
I am using PDFReader3.2 and found the issue.
Can you tell when exactly the data passed with the SetPopupSubject() and SetPopupText() methods are actually set to the Annotation object since after setting the data if I try to fetch the data using GetPopupSubject() and GetPopupText() from the same Annotation object , the GetPopupSubject() and GetPopupText() are returning null but surprising the Annotation object is not null ?
So for setting of data to the Annotation object , does it wait for any UI to render or refresh and then set the data ?