AcroForm Calculation Examples

This page is a listing of sample PDFs that use the calculation event. The samples are collected from different areas of this site. They are not necessarily "Calculation" examples, but they all use the "Calculate" Event in one way or another.

  • Simple Form Calculations(Free Sample): Very basic demonstration of entering Built-in, Simplified Notation, and JavaScript calculations. The JavaScript calculation uses the Math object to perform a trigometric calculation.


  • Standard Calculation Example: Uses an order form to demonstrate several different styles of calculation scripts, including table calculations and alternate uses for the calculation event.


  • PDF Event Ordering Example: This sample shows how PDF JavaScript events interact with one another. This is particularly important for the Calculation Event. Includes controls for special calculation features such as the event return code, blocking calculations, and forcing calculations


  • Working Days Calculator:Simple Calculation for finding the number of days between two dates, without including weekends


  • 2D Matrix Multiplier: Advanced example showing how to perform 3x3 matrix multiplication for manipulating 2-dimensional coordinates.


  • Rental Form:Generic form used to calculate the rental cost between two dates given a cost/day for a particular item.


  • Date Calculations Example: Several examples of different types and styles of date and time calculations.


  • Process Analysis Form: Advanced Table calculation example. User enters completion dates for steps within a process. Lines are provided for entering data on several different process runs. Analysis is provided by several calculations performed on the entered data and controls for filtering which particular lines are used in the calculations.


  • Bike Gear Ratio Calculator: This is a kind of reverse table calculator, where the table cell data are calculated from information entered at the edges of the table.


  • Weekly Time Sheet: Hourly time sheet for one week. Includes daily entry of start and stop times. Total hours and overtime calculations, both daily and weekly.


  • Code Re-Use Example: This is a variation on the basic order form that's used in several examples. In this one, the calculation code is placed in a document script.


  • Finding Scripts on a PDF: Yet another variation on the Order Form example, this one is commented to show where and how scripts are used on a form.


Cookie Notice