Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1

TOPIC:

Questions about "Search"-function 5 years 9 months ago #13996

  • nermeen
  • nermeen's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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 5 years 9 months ago #14009

  • nermeen
  • nermeen's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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