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
  • User is blocked
  • User is blocked
  • Available as freelancer (ex website to app 30min)
More
10 years 8 months ago #10319 by ankur123987
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
More
10 years 8 months ago #10320 by Davide
Hi.
in RDPDFReader module the OnPDFSingleTapped method is divided into:
  • OnPDFAnnotTapped if you tap an annot
  • OnPDFBlankTapped if you tap a blank zone.
So you can place you method in OnPDFBlankTapped
  • ankur123987
  • Topic Author
  • Offline
  • User is blocked
  • User is blocked
  • Available as freelancer (ex website to app 30min)
More
10 years 8 months ago - 10 years 8 months ago #10323 by ankur123987
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
Last edit: 10 years 8 months ago by ankur123987.
More
10 years 8 months ago #10324 by Davide
Hi,
you can edit PDFLayoutListener like this:
Code:
public void OnPDFBlankTapped(float x, float y);
and pass the coordinates in onSingleTapUp method like that:
Code:
m_listener.OnPDFBlankTapped(e.getX(), e.getY());
So you will have the x and y to addText.
Time to create page: 0.326 seconds
Powered by Kunena Forum