Skip to main content
deckarduk
Inspiring
March 17, 2023
Answered

getPageNumWords - Help required please...

  • March 17, 2023
  • 1 reply
  • 644 views

Hi there,

When using getPageNumWords to get the number of words on a page I can see things like ‘What and @11075446 are being treat as 2 words (I've done a test for this). The characters ' and @ are being picked up as separate words. It's the same for quite a few others, for example hyphens.

I've have a look in the JS Scripting Reference but can't see anything to stop this.

Is there a way to disregard characters like this, from getPageNumWords, as they're throwing the figures out?

Or, would I have to go through each word found and test?

Thanks in advance.

This topic has been closed for replies.
Correct answer try67

The latter. Make sure you specify the bStrip parameter of getPageNthWord to false, though.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
March 17, 2023

The latter. Make sure you specify the bStrip parameter of getPageNthWord to false, though.

deckarduk
deckardukAuthor
Inspiring
March 17, 2023

Thanks for the speedy help Gilad 👍