Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

JSOFindWordVB won't find date

New Here ,
Jul 25, 2018 Jul 25, 2018

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
344
Translate
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
LEGEND ,
Jul 25, 2018 Jul 25, 2018
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.

Translate
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