I have a total value which is a sum of a series of prices. I want to calculate 40% of that total price value and add it to a separate field.
The total price value is variable depending on quantity's of items ordered.
How would I go about doing this as a custom script? Looking around the forum I see similar scripts for percentage calculations but not quite what I want.
Thanks!
0.4*Sum + OtherField
That all.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script