Questions about "Search"-function - 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 Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1

TOPIC: Questions about "Search"-function

Questions about "Search"-function 4 months 8 hours ago #13996

  • nermeen
  • nermeen's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
This is the default behavior (searching only for the next/prev occurence).

You can implement the behavior that suits your needs, in this case searching the whole pdf file to get the # of matches that can be found.

For a guide please check www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=137
The following user(s) said Thank You: Daxiel

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

Questions about "Search"-function 3 months 4 weeks ago #14009

  • nermeen
  • nermeen's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
You can create a method like vFindGoto, that works on the data you have.

For example:
int pg = m_finder.find_get_page();
will be substituted with
result[i].Page
and
PDFRect pos = m_finder.find_get_pos();
will be substituted with
m_page.ObjsGetCharRect(result[i].CharacterPosition)

You will also need to highlight the search result, check vDraw:
if (m_finder.find_get_page() == cur)
                            m_finder.find_draw(m_extra, vpage, left, top);

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

  • Page:
  • 1
Powered by Kunena Forum