Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

add EditText and check box at pdf 8 years 1 month ago #10319

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

add EditText and check box at pdf 8 years 1 month ago #10320

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
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

Please Log in or Create an account to join the conversation.

add EditText and check box at pdf 8 years 1 month ago #10323

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Last edit: by ankur123987.

add EditText and check box at pdf 8 years 1 month ago #10324

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
you can edit PDFLayoutListener like this:
public void OnPDFBlankTapped(float x, float y);
and pass the coordinates in onSingleTapUp method like that:
m_listener.OnPDFBlankTapped(e.getX(), e.getY());
So you will have the x and y to addText.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum