- Posts: 10
- Thank you received: 0
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?
- Viachaslau
- Offline
- User is blocked
-
Less
More
10 years 2 months ago #11040
by Viachaslau
Replied by Viachaslau on topic How to add an annotation PopUp?
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!
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!
- Viachaslau
- Offline
- User is blocked
-
Less
More
- Posts: 10
- Thank you received: 0
10 years 2 months ago #11041
by Viachaslau
Replied by Viachaslau on topic How to add an annotation PopUp?
We use PDFViewer3.8beta4_Android Studio.
10 years 2 months ago #11042
by Davide
Replied by Davide on topic How to add an annotation PopUp?
Hi,
I will send the issue to our developers.
We'll get back to you as soon as possible
I will send the issue to our developers.
We'll get back to you as soon as possible
- Viachaslau
- Offline
- User is blocked
-
Less
More
- Posts: 10
- Thank you received: 0
10 years 2 months ago #11043
by Viachaslau
Replied by Viachaslau on topic How to add an annotation PopUp?
ok, thanks
10 years 2 months ago #11049
by Davide
Replied by Davide on topic How to add an annotation PopUp?
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..
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..
- Viachaslau
- Offline
- User is blocked
-
Less
More
- Posts: 10
- Thank you received: 0
10 years 2 months ago #11060
by Viachaslau
Replied by Viachaslau on topic How to add an annotation PopUp?
Thanks, it works!
Time to create page: 0.345 seconds