Skip to main content
rakeshk21205956
Inspiring
April 21, 2017
Question

In a fillable PDF is it possible to do a recursive function...

  • April 21, 2017
  • 1 reply
  • 626 views

In a fillable PDF is it possible to do a recursive function... it needs to be 5-6 levels deep
value A changes bcoz of value B which changes due to value A
Run the equation 5 times and it normalizes.

If yes, then plz provide and example with help of an script.

Thank you in advance.......

This topic has been closed for replies.

1 reply

Joel Geraci
Community Expert
Community Expert
April 21, 2017

There's not enough information here to provide an example that's of any use for forms. However, Acrobat JavaScript works exactly the same way as browser JavaScript, it just uses different objects and properties. So... of course it can do recursive functions.

You can see a working example at the URL below which shows a recursive function to display bookmarks and their children.

Acrobat DC SDK Documentation

rakeshk21205956
Inspiring
April 21, 2017

Is recursive functions and Looping one and the same thing.

Joel Geraci
Community Expert
Community Expert
April 21, 2017

No.

A loop will continue until a criteria is met, generally either a counter, a condition, or when each of the items in a group is processed.

A recursive function is a technique for iterating over an operation by having a function call itself repeatedly until it arrives at a result.

I'm sure there are better explanations but that's that basic difference.