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

TOPIC:

Match whole word not working for searching the word. 4 years 11 months ago #14385

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 67
  • Thank you received: 0
Dear Team,

When i am searching for text in pdf and when i am setting Match whole word to true (g_MatchWholeWord = true) but still it searches the word.
Suppose if i am searching for AGENDA and in search field if i add AGE then it shows me in the search result.

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

Match whole word not working for searching the word. 4 years 11 months ago #14391

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 67
  • Thank you received: 0
Dear team,
Any update regarding matchwhole word.

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

Match whole word not working for searching the word. 4 years 11 months ago #14392

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Dear user,

you could set the match whole word bool like colors of the previous post.
After show method add:
let global: RDGlobal = plugin.getGlobal() as! RDGlobal
global.g_MatchWholeWord = true

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

Match whole word not working for searching the word. 4 years 11 months ago #14393

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 67
  • Thank you received: 0
Dear Team,

The above answers doesn't work.

You have not got my question i want to search whole word which means If i am searching for Age the search result should only show AGE not AGENDA.Currently it showing me Agenda as well in the search result.

The search result i want should only be AGE not AGENDA.

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

Match whole word not working for searching the word. 4 years 11 months ago #14396

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

we double checked with the pdf in our demo project (RadaeeSwift1.1.1) and, using the code in the previous post, it's working.
We searched "pdf" and the library found a match in page 2 instead of matching "PDFVIEWER" in page 1.
Could you please share your pdf file? We could check it to better understand if there is a specific issue with it.

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

Match whole word not working for searching the word. 4 years 10 months ago #14413

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 67
  • Thank you received: 0
Dear Team,
Below is the attached document for testing match whole word.
Attachments:

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum