Skip to main content
Participant
October 16, 2020
Question

Acrobat forms using existing text

  • October 16, 2020
  • 1 reply
  • 265 views

Dear All,

I'm making a pdf Form in Acrobat Pro Extended 9.

I want to use existing numbers to use in a forumla (it's OCR'd text).

Is there a way to do this?

If so, what's the proper procedure?

Also, I want to make a formula that says 'if the QTY is 3 or less, use the first value, but if QTY is less than 3, then use the other value'.

Please tell me the syntax I'm supposed to use.

I do not know JavaScript.

Thanx ... 

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
October 16, 2020

It's possible, but very complex. Your script will have to read the static contents of the file (using getPageNthWord), then find out which number to use (based on its location, which you can get using getPageNthWordQuads, or textual context, etc.), and then convert it to a number and use in the formula. I would just hard-code the number into the script, instead.