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

TOPIC:

E 4 years 4 months ago #14785

  • AABBDD
  • AABBDD's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
A

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

Last edit: by AABBDD.

How to implement selecting text and highlight 4 years 4 months ago #14787

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
the normal implement shall be:
when click on a button, invoke PDFGLLayoutView.PDFSetSelect()
click this button again, invoke PDFGLLayoutView.PDFSetSelect() again to cancel select.
after first call of PDFGLLayoutView.PDFSetSelect(), you can touch and drag any position on screen.
when your finger touch up, ILayoutView.PDFLayoutListener.OnPDFSelectEnd will callback.
you can implement same to PDFGLViewAct.OnPDFSelectEnd(), which implement highlight/underline/strikeout/squiggly and clipboard operations.

other some similar operations:
PDFSetLine to add line annotation
PDFSetNote to add note annotation
PDFSetRect to add rectangle operation
PDFSetEllipse to add oval operation
...
The following user(s) said Thank You: AABBDD

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

  • Page:
  • 1
Powered by Kunena Forum