- Posts: 97
- 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
add EditText and check box at pdf
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
10 years 1 month ago #10319
by ankur123987
Replied by ankur123987 on topic add EditText and check box at pdf
Hello Davide
I am using the RDPDFReader module and PDFLayoutListener,PDFView.PDFViewListener interface for implementation. the methods of PDFLayoutListener,PDFView.PDFViewListener is never called in my activity please help
I am using the RDPDFReader module and PDFLayoutListener,PDFView.PDFViewListener interface for implementation. the methods of PDFLayoutListener,PDFView.PDFViewListener is never called in my activity please help
10 years 1 month ago #10320
by Davide
Replied by Davide on topic add EditText and check box at pdf
Hi.
in RDPDFReader module the OnPDFSingleTapped method is divided into:
in RDPDFReader module the OnPDFSingleTapped method is divided into:
- OnPDFAnnotTapped if you tap an annot
- OnPDFBlankTapped if you tap a blank zone.
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
10 years 1 month ago - 10 years 1 month ago #10323
by ankur123987
Replied by ankur123987 on topic add EditText and check box at pdf
Thanks Davide for reply .
the problem with onPDFBlankTapped method are following .
1 this method does not contain any parameter . i want add text at touch position of pdf at tap location so i need the coordinates of touch event so that i can add text .
2 onPDFBLankTapped method works at blank pdf page location its does not work where image text or any content is printed so this method is useless .
please tell us any example or way to execute the add text at touch location
Thank you
the problem with onPDFBlankTapped method are following .
1 this method does not contain any parameter . i want add text at touch position of pdf at tap location so i need the coordinates of touch event so that i can add text .
2 onPDFBLankTapped method works at blank pdf page location its does not work where image text or any content is printed so this method is useless .
please tell us any example or way to execute the add text at touch location
Thank you
Last edit: 10 years 1 month ago by ankur123987.
10 years 1 month ago #10324
by Davide
Replied by Davide on topic add EditText and check box at pdf
Hi,
you can edit PDFLayoutListener like this:
and pass the coordinates in onSingleTapUp method like that:
So you will have the x and y to addText.
you can edit PDFLayoutListener like this:
Code:
public void OnPDFBlankTapped(float x, float y);
Code:
m_listener.OnPDFBlankTapped(e.getX(), e.getY());
Time to create page: 0.369 seconds