Skip to main content
Known Participant
October 19, 2023
Answered

from number to letter

  • October 19, 2023
  • 3 replies
  • 1849 views

convert a number entered the form into letters.
e.g. module one 23
module two twenty-three

This topic has been closed for replies.
Correct answer JR Boulay

See this great sample file provided with Acrobat 5 (script inside):

https://acrobat.adobe.com/id/urn:aaid:sc:EU:89d9e075-3282-42bb-b65a-6a0c0757edd7

3 replies

JR Boulay
Community Expert
Community Expert
October 24, 2023

Be sure to copy the document level scripts too:

 

Acrobate du PDF, InDesigner et Photoshopographe
Known Participant
October 27, 2023

sorry, I hadn't considered the scripts in the document..I solved it...thanks

JR Boulay
Community Expert
JR BoulayCommunity ExpertCorrect answer
Community Expert
October 19, 2023

See this great sample file provided with Acrobat 5 (script inside):

https://acrobat.adobe.com/id/urn:aaid:sc:EU:89d9e075-3282-42bb-b65a-6a0c0757edd7

Acrobate du PDF, InDesigner et Photoshopographe
Thom Parker
Community Expert
Community Expert
October 19, 2023

There are examples online of code for doing this conversion.   They are setup for browser JS. This is by no means simple code, but since it's mostly a core JS task, it's not difficult to convert the code to PDF JS.    

JR's example is a great one, and it's already PDF JS. 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Known Participant
October 19, 2023

javascript code?

try67
Community Expert
Community Expert
October 19, 2023

This is not an Acrobat JS-specific question. Try searching online. I'm sure there are hundreds of generic JS solutions posted for this already. If you find one and need help integrating it into a PDF we can help you doing that, but if you want someone to do it for you, you'll probably need to pay them.