Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.

TOPIC:

How to add an annotation PopUp? 9 years 10 months ago #8694

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Please check the new beta version 3.4beta7 , 3.4beta7_Android Studio

it has the new interfaces to add popup annotation: Page.AddAnnotPopup, Annotation.GetPopup(), Annotation.GetPopupOpen(), Annotation.SetPopupOpen().
The topic has been locked.

How to add an annotation PopUp? 8 years 5 months ago #11027

  • Viachaslau
  • Viachaslau's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
Hello, Friend! We have problem with add popup annatation and next save and close pdf file. I replay bug in your democod PDFViewer3.7_androidstudio.
For replay bug your need replace method onTouchNote(MotionEvent event) in Project PDFReader in Class PDFReader.java


private boolean onTouchNote(MotionEvent event) {
if (m_status == STA_NOTE) {
switch (event.getActionMasked()) {
case MotionEvent.ACTION_UP:
PDFPos pos = m_view.vGetPos((int) event.getX(), (int) event.getY());
PDFVPage vpage = m_view.vGetPage(pos.pageno);
Page page = vpage.GetPage();
if (page != null) {
float pt[] = new float[2];
pt[0] = pos.x;
pt[1] = pos.y;
page.AddAnnotText(pt);

Annotation annotation = page.GetAnnotFromPoint(pos.x, pos.y);
float pt1[] = new float[4];
pt1[0] = pos.x;
pt1[1] = pos.y;
pt1[2] = pos.x + 10;
pt1[3] = pos.y + 10;
page.AddAnnotPopup(annotation, pt1, false);

m_view.vRenderSync(vpage);
if (m_listener != null)
m_listener.OnPageModified(vpage.GetPageNo());
}
break;
}
return true;
}
return false;
}


I add logcat with bug.
I urgently need to fix this error. Thank you.
The topic has been locked.

How to add an annotation PopUp? 8 years 5 months ago #11035

  • lda
  • lda's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 12
  • Thank you received: 1
I have this bug too. Error from native library end force close android application!
Please help.
The topic has been locked.

How to add an annotation PopUp? 8 years 5 months ago #11036

  • lda
  • lda's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 12
  • Thank you received: 1
I have this bug too. Error in native library end force close android application!
Please help.
The topic has been locked.

How to add an annotation PopUp? 8 years 5 months ago #11037

  • lda
  • lda's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 12
  • Thank you received: 1
I have this bug too. Error in native library - force close android application!
Please help.
Last edit: by lda.
The topic has been locked.

How to add an annotation PopUp? 8 years 5 months ago #11039

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
can you reproduce it with the last beta version? www.radaeepdf.com/download/download-prev...ile/61-radaeepdf-38b
If yes, please tell me the steps to reproduce it..
Thanks
The topic has been locked.
Powered by Kunena Forum