- 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
can not get popup text when try to show in a list
- arcmobile.div
- Topic Author
- Offline
- Premium Member
-
Less
More
IP: 192.168.0.70
12 years 2 months ago #5032
by arcmobile.div
can not get popup text when try to show in a list was created by arcmobile.div
Hi,
As per our requirement we have to show textbox and note icon with text respectively.
So we first load the mark and set the popup text in that page and try to get the text and note mark's content i.e text in our list. We can get the locking property but not get pop text which i have set when mark up load on that page.
From an activity i have called following code :
//*********************************************************
int pageno = mReader.getPageNo();
PDFView pdf_view = mReader.getView();
String annot_text="";
PDFVPage vpage = pdf_view.vGetPage(pageno);
Page page = vpage.GetPage();
for (int i = 0; i < page.GetAnnotCount(); i++) {
Annotation annot = page.GetAnnot(i);
annot_text=annot.GetPopupText();/// i can not get text
if (!annot.IsLocked())// hare i get the lock type what i have set when loading the mark up
//*********************
Can you tell me what i am doing wrong that can't get that text ???
we are waiting for your reply
Thanks.
As per our requirement we have to show textbox and note icon with text respectively.
So we first load the mark and set the popup text in that page and try to get the text and note mark's content i.e text in our list. We can get the locking property but not get pop text which i have set when mark up load on that page.
From an activity i have called following code :
//*********************************************************
int pageno = mReader.getPageNo();
PDFView pdf_view = mReader.getView();
String annot_text="";
PDFVPage vpage = pdf_view.vGetPage(pageno);
Page page = vpage.GetPage();
for (int i = 0; i < page.GetAnnotCount(); i++) {
Annotation annot = page.GetAnnot(i);
annot_text=annot.GetPopupText();/// i can not get text
if (!annot.IsLocked())// hare i get the lock type what i have set when loading the mark up
//*********************
Can you tell me what i am doing wrong that can't get that text ???
we are waiting for your reply
Thanks.
- arcmobile.div
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 80
- Thank you received: 0
IP: 192.168.0.70
12 years 2 months ago #5033
by arcmobile.div
Replied by arcmobile.div on topic can not get popup text when try to show in a list
This is very urgent for us. Kindly check this issue.
Thanks.
Thanks.
IP: 192.168.0.70
12 years 2 months ago #5036
by nermeen
Replied by nermeen on topic can not get popup text when try to show in a list
Are you sure you have set the popup text properly ? and you are getting it from the same annotation?
www.androidpdf.mobi/documentation/javado...xt(java.lang.String)
www.androidpdf.mobi/documentation/javado....html#GetPopupText()
www.androidpdf.mobi/documentation/javado...xt(java.lang.String)
www.androidpdf.mobi/documentation/javado....html#GetPopupText()
Time to create page: 0.392 seconds