PDF Editing Issues

How to Convert Currency Amounts to Words in Acrobat PDF Forms

Khadija KhanKhadija Khan Oct 28, 2026 868 views

Question details

The user wants to automatically convert numeric dollar amounts into English words with fractional cents in a fillable PDF form.

Convert Currency Amounts to Words in a Fillable PDF Form
Product
Adobe Acrobat / PDF Forms
Device & OS
not provided
Scenario
Creating a fillable PDF form that requires a written-out currency total, such as for invoices or digital checks.
Observed behavior
The user needs a script to read a numeric total and output the formatted text because Acrobat lacks a native currency-to-words function.
Before you start

Ensure you have access to a PDF editor that supports adding and testing custom JavaScript calculations in form fields, such as Adobe Acrobat Pro.

Solution 1Recommended

Add a Custom JavaScript Calculation to the PDF Form Field

Use a custom JavaScript snippet in the destination text field to read the numeric total, separate the dollars and cents, and convert it into words.

Since PDF editing software does not have a built-in function to translate numbers into English words, you must write a custom JavaScript function. This script splits the decimal value and uses an array to map digits to their corresponding English words.

1
Open the PDF in Form Editing Mode

Open your fillable PDF in your PDF editor (like Adobe Acrobat) and enter the 'Prepare Form' mode from the tools menu.

2
Access Field Properties

Right-click the destination text field where you want the converted words to appear and select 'Properties'.

3
Navigate to the Calculate Tab

In the Text Field Properties window, click on the 'Calculate' tab and select the 'Custom calculation script' option.

4
Enter the JavaScript Code

Click the 'Edit' button and paste your custom JavaScript. The script should extract the value from the numeric total field using `this.getField('TotalField').value`, convert the whole number into words, append the cents as XX/100, and assign the final string to `event.value`.

5
Save and Test the Form

Click 'OK' to save the script and close the Properties window. Exit form editing mode and type a number into the source field to verify the conversion works correctly (e.g., 456.26 becomes 'Four hundred fifty-six and 26/100').

Add a Custom JavaScript Calculation to the PDF Form Field
Script Complexity: Writing a robust number-to-words JavaScript function requires defining arrays for ones, tens, and scales (thousands, millions). You can find pre-written open-source JavaScript snippets for this specific task on developer forums to paste into your PDF.
Easy PDF Form Management

Edit and Fill PDF Forms smoothly with WPS Office

WPS Office provides a comprehensive suite of PDF tools allowing you to easily read, fill, edit, and manage interactive PDF forms without needing heavy or expensive software.

  1. 1. Open WPS Office: Launch WPS Office on your device and click on the 'PDF' tab on the home screen.
  2. 2. Open Your PDF Form: Select 'Open' and browse your computer to load your fillable PDF document.
  3. 3. Fill and Edit: Click on the interactive form fields to enter your data. If the form lacks interactive fields, use the 'Fill & Sign' tools to insert custom text boxes.
  4. 4. Save Your Document: Go to Menu > Save As to export the completed PDF form to your local drive or cloud storage.
Easily fill out and interact with standard PDF form fieldsHighly compatible with Microsoft Office formats and Adobe PDF standardsLightweight architecture that runs smoothly on Windows, Mac, and mobileAdd custom text, electronic signatures, and stamps to any PDF document
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't Acrobat convert numbers to words automatically?

PDF editing software like Acrobat focuses on document structure and basic mathematical calculations (sum, product, average). Converting numbers to natural language strings requires complex parsing rules that vary heavily by language, which must be handled by custom JavaScript.

Can I use this JavaScript in any PDF reader?

The script will work in most advanced PDF viewers that support JavaScript calculations. However, some basic mobile PDF readers or built-in web browsers may block PDF JavaScript execution for security reasons.

How do I handle amounts larger than thousands in the script?

Your custom JavaScript needs to be robust enough to handle arrays for 'thousands', 'millions', and 'billions'. You will need to implement a loop or recursive function within the script to parse larger number blocks accurately.

What if my cents portion is exactly zero?

You can write a conditional statement (if/else) in your JavaScript to check if the decimal portion is exactly .00. If it is, the script can be programmed to output '00/100' or omit the cents portion entirely based on your specific formatting preference.