- Posts: 80
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Issue with data returned from the Annotation class
- arcmobile.div
- Topic Author
- Offline
- Premium Member
-
Less
More
11 years 3 months ago #9100
by arcmobile.div
Issue with data returned from the Annotation class was created by arcmobile.div
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 ?
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 ?
- arcmobile.div
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 80
- Thank you received: 0
11 years 2 months ago #9135
by arcmobile.div
Replied by arcmobile.div on topic Issue with data returned from the Annotation class
Still waiting for an update ?
11 years 2 months ago - 11 years 2 months ago #9154
by Davide
Replied by Davide on topic Issue with data returned from the Annotation class
Hi,
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?
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?
Last edit: 11 years 2 months ago by Davide.
- arcmobile.div
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 80
- Thank you received: 0
11 years 2 months ago - 11 years 2 months ago #9166
by arcmobile.div
Replied by arcmobile.div on topic Issue with data returned from the Annotation class
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 ?
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 ?
Last edit: 11 years 2 months ago by arcmobile.div.
Time to create page: 0.426 seconds