getPageNthWord keeping parentheses even with bStrip NOT set to false

Community Beginner ,
Aug 21, 2018

Copy link to clipboard

Copied

Hello, when I'm using getPageNthWord, if the word is inside parentheses it keeps a parenthesis attached to the word even with bStrip parameter set to true. And what is strange is that only the "(" opening parentheses are kept, the closing ones are not.  This is problematic because when I want to match the document words with a search it doesn't match. It could be fixed manually by checking if the NthWord contains a parenthesis and removing it with replace() but I think it would slow performance on longer documents ?? Any explanation on this would be very appreciated !

TOPICS
Acrobat SDK and JavaScript

Views

78

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

getPageNthWord keeping parentheses even with bStrip NOT set to false

Community Beginner ,
Aug 21, 2018

Copy link to clipboard

Copied

Hello, when I'm using getPageNthWord, if the word is inside parentheses it keeps a parenthesis attached to the word even with bStrip parameter set to true. And what is strange is that only the "(" opening parentheses are kept, the closing ones are not.  This is problematic because when I want to match the document words with a search it doesn't match. It could be fixed manually by checking if the NthWord contains a parenthesis and removing it with replace() but I think it would slow performance on longer documents ?? Any explanation on this would be very appreciated !

TOPICS
Acrobat SDK and JavaScript

Views

79

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
Aug 21, 2018 0
try67 LATEST
Most Valuable Participant ,
Aug 21, 2018

Copy link to clipboard

Copied

It's strange, but removing the parentheses should not cause any noticable

delay.

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
Reply
Loading...
Aug 21, 2018 0