Create a selection from startIndex, endIndex - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Create a selection from startIndex, endIndex

Create a selection from startIndex, endIndex 1 year 5 months ago #12432

  • doubleeye
  • doubleeye's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
Currently we create a new selection using top,left, bottom, right coordinates.

Is there a way I can use the character startIndex and character endIndex to create a selection?

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

Create a selection from startIndex, endIndex 1 year 5 months ago #12436

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
If you have the start and end index in PDF coordinates, you can create selection as the following:
VSel m_sel = new VSel(m_doc.GetPage(pageno));
m_sel.SetSel( start.x, start.y, end.x, end.y);
.....
You can take as example the selection behavior in the demo project, check PDFLayoutView.onTouchSelect, PDFLayoutView.onDrawSelect

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

  • Page:
  • 1
Powered by Kunena Forum