PDF Automation Station

PDF Automation Station

JavaScript Math

Sometimes equations must be built from scratch.

David Dagley's avatar
David Dagley
Aug 30, 2025
∙ Paid
Share
mathematics computation
Photo by Antoine Dautry on Unsplash

A Message To My Readers

Thank you for reading my newsletter. I appreciate every one of you.

It has been almost two years since my first article appeared in this Substack on October 23, 2023. My goal was to publish a column every Saturday morning. Except for a week when I had a death in the family, I fulfilled this goal until August 9th of this year. I took a two week break to enjoy some vacation time and let my mind recover after a 3,500-miles-in-a-week motorcycle trip.

It has been a challenge to come up with fresh material on weekly basis. Answering questions on the Acrobat User Forum has helped me in this regard, as well as the questions and comments from those of you who have reached out to me. If you have how-to questions, the comment section below each post is the best place for those.

So far I have not taken advantage of the paywall that is available to me on Substack. Everything, including the archive, has been 100% free. I will soon be introducing a paywall because it takes a lot of energy to produce quality work week after week, and that work is valuable. My free subscribers will still be able to access the weekly articles for a period of time before the paywall is added. For paid subscribers there will be extra value beyond the knowledge in these articles in the form of automation tools and online courses.

These changes are coming soon. Stay tuned…


Excel has a lot of built-in math formulas. Many Adobe Acrobat users who are familiar with Excel start looking for the formulas when programming mathematical equations into PDF fillable forms.

Almost any math that can be done in Excel can also be done in a PDF fillable form using JavaScript. It just takes a lot more work sometimes, as the formulas must be built from scratch.

Download Our Demonstration Calculator

Some of the following calculations are included in our demonstration calculator that you can download below:

  • Present value/future value that solves for one of the following: present value, future value, interest rate, or time.

  • Present value of an income stream that solves for one of the following: present value, time, or annual payments.

  • Mortgage calculators for both the United States and Canada (bonus: mortgage bar graphs that display total payments and the interest portion).

Pas Calculator
920KB ∙ PDF file
Download
Download

There are no built-in formulas for the above calculations, like with Excel, so they had to be built from scratch using JavaScript to write the equations.

Get the course above, and a suite of automation tools for FREE with a Professional subscription.

Keep reading with a 7-day free trial

Subscribe to PDF Automation Station to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 David Dagley
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture