Issue with data returned from the Annotation class - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Issue with data returned from the Annotation class

Issue with data returned from the Annotation class 3 years 4 months ago #9100

  • arcmobile.div
  • arcmobile.div's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 80
  • Thank you received: 0
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 ?

Please Log in or Create an account to join the conversation.

Issue with data returned from the Annotation class 3 years 4 months ago #9135

  • arcmobile.div
  • arcmobile.div's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 80
  • Thank you received: 0
Still waiting for an update ?

Please Log in or Create an account to join the conversation.

Issue with data returned from the Annotation class 3 years 4 months ago #9154

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
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?

Please Log in or Create an account to join the conversation.

Last edit: by Davide.

Issue with data returned from the Annotation class 3 years 4 months ago #9166

  • arcmobile.div
  • arcmobile.div's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 80
  • Thank you received: 0
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 ?

Please Log in or Create an account to join the conversation.

Last edit: by arcmobile.div.

Issue with data returned from the Annotation class 3 years 4 months ago #9167

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
no, can you reproduce this issue with the last library version?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum