getPageNthWord returning [object Doc] when used in a text field custom calculation
Hello
Using Acrobat DC Pro.
When I try to the use the function this.getPageNthWord() or doc.getPageNthWord() and convert it to a string, I get the [object Doc] instead of a word. I can use the function this.getPageNthWord() by intelf on the same document on the console command and it comes up with the first word in the document, but not when I use the function in the custom calculation of a text field.
Bit of context
I have a working custom stamp that brings up an execDialog box for the user to enter stamp data into when the stamp is placed. I would like the stamp dialogbox text fields to be filled in with data from text on the document when the stamp is applied.
