JSOFindWordVB won't find date

New Here ,
Jul 25, 2018 Jul 25, 2018

Copy link to clipboard

Copied

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?

TOPICS
Acrobat SDK and JavaScript

Views

107

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Jul 25, 2018 Jul 25, 2018

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines