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.

How to add an annotation PopUp?

More
10 years 4 weeks ago #11040 by Viachaslau
Hi. We add code in your example and application crash.
Project PDFReader. Class PDFReader.java. Method onTouchNote(MotionEvent event):
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);
~~~~~~~~~~~~~add this code~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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;
}

We use open pdf.file.
> add note in pdf.file,
> use save
>use close
> application crash((
Help, pls!
More
10 years 4 weeks ago #11041 by Viachaslau
We use PDFViewer3.8beta4_Android Studio.
More
10 years 4 weeks ago #11042 by Davide
Hi,
I will send the issue to our developers.
We'll get back to you as soon as possible
More
10 years 4 weeks ago #11043 by Viachaslau
ok, thanks
More
10 years 4 weeks ago #11049 by Davide
Hi,
we have just published a new beta version that fixes the issue : www.radaeepdf.com/download/download-prev...ile/61-radaeepdf-38b

Let us know if it's ok for you..
More
10 years 4 weeks ago #11060 by Viachaslau
Thanks, it works!
Time to create page: 0.384 seconds
Powered by Kunena Forum