Skip to main content
Participant
July 25, 2018
Question

JSOFindWordVB won't find date

  • July 25, 2018
  • 1 reply
  • 369 views

The JSOFindWordVB sample app finds a word in a pdf, works great, but will not find a date.  I copy the date from the pdf, so I know it's the same, paste in the query field and it does not find it?  Why?

This topic has been closed for replies.

1 reply

Legend
July 25, 2018

The samples are illustrations of particular APIs, not apps ready for use. "The application displays a dialog box in which the user can select a PDF file and input a word (in Roman characters only) to find."

A property of getPageNthWord is that it returns exactly one word. Words are separated by punctuation. Almost every way of writing a date is going to include punctuation, so it's going to be more than one word. Multi-word searches (without punctuation) are entirely possible, but the logic is much more complex.