PDF Editing Issues

How to Convert Numbers to Words in an Acrobat PDF Form

Nimra MalikNimra Malik Nov 3, 2026 869 views

Question details

The user needs to automatically translate numeric values entered in one PDF form field into written text strings in another field.

How to Convert Numbers to Words in an Acrobat Form
Product
Adobe Acrobat
Device & OS
not provided
Scenario
Creating or editing an interactive PDF form where currency or numerical values need to be spelled out automatically.
Observed behavior
The user wants the destination field to automatically populate with the text equivalent of a number entered in the source field, but cannot find a built-in feature to do this.
Before you start

Ensure you have Adobe Acrobat Pro or an advanced PDF editor, as free PDF readers cannot add document-level JavaScript. You will also need to source a generic JavaScript code snippet designed for number-to-words conversion.

Solution 1Recommended

Use a Custom Calculation Script in Adobe Acrobat

Add a custom JavaScript function to your PDF document and trigger it from the destination text field's calculation properties.

Adobe Acrobat does not have a simple built-in number-to-words conversion tool. To achieve this, you must use a JavaScript function that parses numbers and outputs strings, and then call that function from a custom calculation script within the destination text field.

1
Prepare the JavaScript Code

Search online for a generic JavaScript function (often named 'NumToWords' or similar) that handles number-to-text conversion. Ensure the script accounts for decimals and currency formatting if needed.

2
Add Document-Level Script

Open your PDF in Acrobat, go to 'Tools' > 'JavaScript', and select 'Document JavaScripts'. Enter a name for your script, click 'Add', delete the default generated code, and paste your conversion script.

3
Open Form Field Properties

Switch to 'Prepare Form' mode from the Tools pane. Right-click the destination text field (where the written words should appear) and select 'Properties'.

4
Set Custom Calculation

Navigate to the 'Calculate' tab in the Properties window. Select the 'Custom calculation script' option, click the 'Edit' button, and enter a script that calls your document-level function based on the source field's value (e.g., event.value = NumToWords(this.getField('NumberField').value);).

Use a Custom Calculation Script in Adobe Acrobat
Thoroughly Test Your Script: Always test your form with various inputs, including currency amounts, decimal values, negative numbers, and large numbers, to ensure the JavaScript handles localization and edge cases correctly.
Powerful PDF Editor

Create and Edit Interactive PDF Forms with WPS PDF

WPS Office includes a feature-rich PDF editor that allows you to effortlessly create, edit, and manage interactive PDF forms, supporting robust text fields and properties.

  1. 1. Open WPS PDF: Launch WPS Office and open your PDF document using the PDF editor.
  2. 2. Access Form Tools: Navigate to the 'Form' tab on the top ribbon to view the available interactive form controls.
  3. 3. Add Form Fields: Select 'Text Field' from the toolbar and drag a box on your document to place the interactive input area.
  4. 4. Modify Field Properties: Double-click the newly created text field to adjust its appearance, formatting, and calculation behaviors.
Fully compatible with standard PDF form formatsEasily insert text fields, checkboxes, and interactive controlsLightweight, intuitive, and highly cost-effective compared to Adobe AcrobatSeamlessly edit PDF text, images, and pages within the same app
microsoft office alternative - wps office

Frequently Asked Questions

Can Acrobat automatically spell out currency values without JavaScript?

No, Adobe Acrobat does not feature a native, built-in tool to convert numbers to text or explicitly spell out currency. Implementing custom JavaScript is the only way to automate this process.

Why isn't my custom calculation script updating the destination field?

This usually happens due to incorrect calculation order. Ensure that your source field is set to calculate before the destination field. You can adjust the calculation order by going to 'Prepare Form' > 'More' > 'Set Field Calculation Order'.

Can users trigger this JavaScript calculation in the free Adobe Reader?

Yes. While creating the form and adding the document-level JavaScript requires Acrobat Pro or a similar advanced PDF editor, end-users can fill out the form and trigger the automated scripts using the free Adobe Reader.

How do I handle decimal points and cents in the conversion script?

Your custom JavaScript must be explicitly programmed to parse decimal values. Most comprehensive number-to-word scripts split the input at the decimal point and append text such as 'and XX/100 Dollars' to handle currency properly.