how to get startIndex and endIndex of highlighted text in PDF - Page 2 - RadaeePDF.com - Results from #6
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 iOS development and PDF
  • Page:
  • 1
  • 2

TOPIC: how to get startIndex and endIndex of highlighted text in PDF

Get StartIndex and EndIndex of highlighted text 2 weeks 4 days ago #13433

  • joshnaAppcare
  • joshnaAppcare's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Hi,
Thanks for your reply
what will be the implementation of methods - (int)getStartIndex; and - (int)getEndIndex; in PDFVSel

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

Get StartIndex and EndIndex of highlighted text 2 weeks 4 days ago #13439

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 17
  • Thank you received: 0
Hi,
Regarding the methods getStartIndex and getEndIndex the implementation is what i said in the previous post.

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

Get StartIndex and EndIndex of highlighted text 2 weeks 4 days ago #13441

  • joshnaAppcare
  • joshnaAppcare's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Hi,

yes but you told to implement in PDFVPage as below
If you want to get indexes you can add in PDFVPage class two methods:
- (int)GetSelStartIndex
{
return [m_sel getStartIndex];
}

- (int)GetSelEndIndex
{
return [m_sel getEndIndex];
}

but what should be the implementation in PDFVSel

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

Get StartIndex and EndIndex of highlighted text 2 weeks 3 days ago #13446

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 17
  • Thank you received: 0
Hi,
In PDFVPage class, you could add in PDFVSel implementation getStartIndex and getEndIndex methods:
- (int)getStartIndex
{
    return m_index1;
}
- (int)getEndIndex
{
    return m_index2;
}

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum