- Posts: 962
- Thank you received: 87
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.
Cordova, Xamarin, Basic4Android topics are listed here.
How to add an annotation PopUp?
11 years 1 week ago #8694
by nermeen
Replied by nermeen on topic How to add an annotation PopUp?
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().
it has the new interfaces to add popup annotation: Page.AddAnnotPopup, Annotation.GetPopup(), Annotation.GetPopupOpen(), Annotation.SetPopupOpen().
- Viachaslau
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
9 years 7 months ago #11027
by Viachaslau
Replied by Viachaslau on topic How to add an annotation PopUp?
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.
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.
9 years 7 months ago #11035
by lda
Replied by lda on topic How to add an annotation PopUp?
I have this bug too. Error from native library end force close android application!
Please help.
Please help.
9 years 7 months ago #11036
by lda
Replied by lda on topic How to add an annotation PopUp?
I have this bug too. Error in native library end force close android application!
Please help.
Please help.
9 years 7 months ago - 9 years 7 months ago #11037
by lda
Replied by lda on topic How to add an annotation PopUp?
I have this bug too. Error in native library - force close android application!
Please help.
Please help.
Last edit: 9 years 7 months ago by lda.
9 years 7 months ago #11039
by Davide
Replied by Davide on topic How to add an annotation PopUp?
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
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
Time to create page: 0.384 seconds