Acrobat X number to word

Is there a function that I can use in the Acrobat X form under custom script to convert a number that is entered in a field to words, like 2014  would become Two thousand and fourteen...the function would be similar to the FormCalc funct Numword() the only reason I can't use LiveCycle the document was scanned and I converted it to a form from Adobe X....I tried to open it in LiveCycle but I do not get the image of the form...any help will be greatly appreciated

Yes, in fact a function to perform this task is included on the distribution disk for Acrobat as a sample form since Acrobat 4.
aTens = [ "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"];
aOnes = [ "Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine",
  "Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen",
  "Nineteen" ];
function ConvertToHundreds(num)
   var cNum, nNum;
   var cWords = "";
   num %= 1000;
   if (num > 99) {
      /* Hundreds. */
      cNum = String(num);
      nNum = Number(cNum.charAt(0));
      cWords += aOnes[nNum] + " Hundred";
      num %= 100;
      if (num > 0)
         cWords += " and "
   if (num > 19) {
      /* Tens. */
      cNum = String(num);
      nNum = Number(cNum.charAt(0));
      cWords += aTens[nNum - 2];
      num %= 10;
      if (num > 0)
         cWords += "-";
   if (num > 0) {
      /* Ones and teens. */
      nNum = Math.floor(num);
      cWords += aOnes[nNum];
   return cWords;
function ConvertToWords(num)
   var aUnits = [ "Thousand", "Million", "Billion", "Trillion", "Quadrillion" ];
   var cWords = (num >= 1 && num < 2) ? "Dollar and " : "Dollars and ";
   var nLeft = Math.floor(num);
   for (var i = 0; nLeft > 0; i++) {
       if (nLeft % 1000 > 0) {
          if (i != 0)
             cWords = ConvertToHundreds(nLeft) + " " + aUnits[i - 1] + " " + cWords;
          else
             cWords = ConvertToHundreds(nLeft) + " " + cWords;
       nLeft = Math.floor(nLeft / 1000);
   num = Math.round(num * 100) % 100;
   if (num > 0)
      cWords += ConvertToHundreds(num) + " Cents";
   else
      cWords += "Zero Cents";
   return cWords;

Similar Messages

  • How to Count total number of Words in PDF?

    I am used Adobe Acrobat javascript inbuilt function getPageNumWords(<pagenumber>) it return the number of words present in specified page, but while am copy and paste text content from PDF file to MS Word, Words count given by MS Word is little bit differ, so any one know in which aspect Acrobat count the words?
    Which words count result is correct?
    Shall is go with Acrobat Words count result or MS Words count result?
    But I want to count the total number of words in PDF file (my input is PDF file) else can I go with iText?
    Words count in PDf using iText is possible?

    Word counts are likely to vary a little according to how you count. For instance, are hyphenated words one or two words? What if the hyphen is at the end of a line? Do numbers count as words? Headers and footers? Captions?
    Generally, you just accept a slight variation. If you are counting words in a professional context, i.e. where payment is per word, you probably need a contractual definition of how words are to be counted; in the absence of one, I suggest you use Word.

  • Can I limit the number of words in text fields?

    I am creating a fillable form using Adobe Acrobat XI.  I know how to limit the character count in a text field, but my client would prefer that the field limit the actual number of words.  Is there a way to do this?
    Thank you!
    Jeanne

    Yes, it is possible, but it requires using a custom-made script.

  • Acrobat search. Two words close to each other.

    Hello.
    I recently bought Adobe Acrobat XI Pro.
    I am a college student so I frequently need to search large volumes of text for a specific keyword.
    How do I tell my Advanced Search to look for text if the distance between two keywords doesn't exceed some number of symbols or words?
    Lets say I want to find the word "Blood" in the same sentance as the word "Pressure" but not "Blood Pressure". How do I tell my search program to find that?
    In Microsoft Word, there is a feature I am talking about. See micture included.
    Those search commands are called commands, tokens or something of that nature. I forgot.
    This feature existed in some programs since the days of DOS as I remember.
    So how do I use this feature in Adobe Acrobat XI Pro ?
    Where may I find a full list of those search operators?
    Thank you.

    That isn't possible in exactly the way you describe - Acrobat has no regexp-driven search feature.
    Acrobat's Advanced Search feature has a 'proximity' option to match two or more words separated by up to a maximum number of words (which is set on the application preferences) but it will also match adjacent words, and can only be run against multiple files (not against the current document). Neither can you filter the search results using another set of rules.

  • Function to convert number to word format.

    Dear Friends,
    Could you please help me with a code that will take 'sum of all values of a column' as input parameter & return its value in word format.
    Number can be negative , it can/can't contain digits after decimal.
    i have two ways but it won't work when my no. becomes negative
    Moreover i want that it should work on both type of data, numbers without decimal & number with decimal.
    that is what i possess:
    1)
    function CF_1FORMULA return char is
    num1 number;
    p_number number;
    type myArray is table of varchar2(255);
    l_str myArray := myArray( '',
    ' thousand ', ' million ',
    ' billion ', ' trillion ',
    ' quadrillion ', ' quintillion ',
    ' sextillion ', ' septillion ',
    ' octillion ', ' nonillion ',
    ' decillion ', ' undecillion ',
    ' duodecillion ' );
    l_num varchar2(50);
    l_return varchar2(4000);
    begin
    num1:=:my_mumber;
         p_number:=num1;
         l_num:=trunc( p_number );
    for i in 1 .. l_str.count
    loop
    exit when l_num is null;
    if ( to_number(substr(l_num, length(l_num)-2, 3)) <> 0 )
    then
    l_return := to_char(
    to_date(
    substr(l_num, length(l_num)-2, 3),
    'J' ),
    'Jsp' ) || l_str(i) || l_return||'Rupees';
    end if;
    l_num := substr( l_num, 1, length(l_num)-3 );
    end loop;
    return l_return;
    end;
    and
    2)
    select to_char(to_date(floor(1234.99),'J'),'Jsp')||' Rupees and '||to_char(to_date((1234.99-(floor(1234.99)))*100,'J'),'Jsp')||' Paise' from dual;
    kindly help me.
    Thanks & Regards
    Vishnu

    Common question.
    But you will have realised that already if you'd bothered to search the forum...
    http://forums.oracle.com/forums/search.jspa?threadID=&q=number+to+word&objID=f75&dateRange=all&userID=&numResults=30

  • How to Count number of words in a file....

    Hi Experts,
    I have uploaded the text file, from the application server, like this: 
    call function 'GUI_UPLOAD'
      exporting
        filename = LV_ip_FILENAME
      tables
        data_tab = LT_FILETABLE.
    The text file contains some number character words....  like "sap labs india..... "
    Now, I wanted to count number of words in an internal table  LT_FILETABLE....  can anybody help me?

    Hi,
    Special Characters in Regular Expressions
    The following tables summarize the special characters in regular expressions:
    Escape character
    Special character Meaning
    Escape character for special characters
    Special character for single character strings
    Special character Meaning
    . Placeholder for any single character
    C Placeholder for any single character
    d Placeholder for any single digit
    D Placeholder for any character other than a digit
    l Placeholder for any lower-case letter
    L Placeholder for any character other than a lower-case letter
    s Placeholder for a blank character
    S Placeholder for any character other than a blank character
    u Placeholder for any upper-case letter
    U Placeholder for any character other than an upper-case letter
    w Placeholder for any alphanumeric character including _
    W Placeholder for any non-alphanumeric character except for _
    [ ] Definition of a value set for single characters
    [^ ] Negation of a value set for single characters
    [ - ] Definition of a range in a value set for single characters
    [ [:alnum:] ] Description of all alphanumeric characters in a value set
    [ [:alpha:] ] Description of all letters in a value set
    [ [:blank:] ] Description for blank characters and horizontal tabulators in a value set
    [ [:cntrl:] ] Description of all control characters in a value set
    [ [:digit:] ] Description of all digits in a value set
    [ [:graph:] ] Description of all graphic special characters in a value set
    [ [:lower:] ] Description of all lower-case letters in a value set
    [ [:print:] ] Description of all displayable characters in a value set
    [ [:punct:] ] Description of all punctuation characters in a value set
    [ [:space:] ] Description of all blank characters, tabulators, and carriage feeds in a value set
    [ [:unicode:] ] Description of all Unicode characters in a value set with a code larger than 255
    [ [:upper:] ] Description of all upper-case letters in a value set
    [ [:word:] ] Description of all alphanumeric characters in a value set, including _
    [ [:xdigit:] ] Description of all hexadecimal digits in a value set
    a f
          v Diverse platform-specific control characters
    [..] Reserved for later enhancements
    [==] Reserved for later enhancements
    u2192 More
    Special characters for character string patterns
    Special character Meaning
    Concatenation of n single characters
    {n,m} Concatenation of at least n and a maximum of m single characters
    {n,m}? Reserved for later enhancements
    ? One or no single characters
    Concatenation of any number of single characters including 'no characters'
    *? Reserved for later enhancements
    + Concatenation of any number of single characters excluding 'no characters'
    +? Reserved for later enhancements
    | Linking of two alternative expressions
    ( ) Definition of subgroups with registration
    (?: ) Definition of subgroups without registration
    1, 2, 3 ... Placeholder for the register of subgroups
    Q ... E Definition of a string of literal characters
    (? ... ) Reserved for later enhancements
    for more details please refer the following,
    [http://help.sap.com/abapdocu_70/en/ABENREGEX_SYNTAX_SIGNS.htm]
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/902ce392-dfce-2d10-4ba9-b4f777843182?QuickLink=index&overridelayout=true]
    Thanks,
    Renuka S.

  • How do I divide a paragraph to lines a certain number of words?

    Hello,
    I have written a class that is supposed to basically, divide the number of paragraphs (in this case separated by newlines) to lines with 10 words or less, meaning each line has 10 words until the last line, which might have fewer words.
    I am using jre 1.3, and in my assignment at work I don't have the choice of changing it to a higher jre. So, I have to use 1.3.
    I have explained in the code what I want to do, and what I have done. Right now, my problem is in the last for loop, where I wish to take all the words, divide them to 10-word (or less for the last line) sets and add them to the String object line. Afterwards, I'd like to add these 10 words to the Vector lines. As of now, the individual words are getting added to the Vector, instead of lines.
    So, basically what I need to do is, count up to 10 words, add them to String line, and when this is finished (which is not the case now), add line to the Vector lines.
    Any help will be greatly appreciated. I am really confused on how to implement this part of the code.
    Here's the code:
    import java.util.StringTokenizer;
    import java.util.Vector;
    public class StringTester {
         public static void main(String[] args) {
              // TODO Auto-generated method stub
            String str = new String("WASHINGTON (CNN) -- Vice President Joe Biden brushed aside "+
                "recent criticism by predecessor Dick Cheney that moves by the Obama " +
                "administration had put the United States at risk, telling CNN on Tuesday " +
                "that the former vice president was dead wrong.\n"+
                "I don't think [Cheney] is out of line, but he is dead wrong, he told CNN's " +
                "Wolf Blitzer. This administration -- the last administration left us in a " +
                "weaker posture than we've been any time since World War II: less regarded " +
                "in the world, stretched more thinly than we ever have been in the past, " +
                "two wars under way, virtually no respect in entire parts of the world.\n"+
                "I guarantee you we are safer today, our interests are more secure today than " +
                "they were any time during the eight years of the Bush administration."+
                "In an interview with CNN's John King last month, Cheney said President Obama " +
                "had been making some choices that in my mind will raise the risk to the " +
                "American people of another attack.");
            //Basically, what I want to do is divide each of these paragraphs to lines
              //with 10 or less words.  That is, each line has 10 words until the last line
              //which might have fewer words.     
            StringTokenizer st = new StringTokenizer(str, "\n");
            //1. Take each token (which is a paragraph)
            //2. count the number of words it has
            //3. count up to 10 words, until the word count has reached the
            //total number of words on each paragraph, and each of the ten words to a line.
            Vector paragraphs = new Vector();
            while (st.hasMoreTokens()) {
               paragraphs.addElement(st.nextToken());
            Vector lines = new Vector();
            int wordCount = 0;
            Vector words = new Vector();
            for(int i=0;i<paragraphs.size();i++) {
               StringTokenizer st2 = new StringTokenizer((String)paragraphs.elementAt(i), " ");
               //the number of tokens in st2 represents the number of words (separated by space)
               //in each paragraph.
               while(st2.hasMoreTokens()) {
                   //then add each word to an arrayList
                    words.addElement(st2.nextToken());
            for(int i=0;i<words.size();i++) {
                 String line = "";
                while(wordCount < 10 * i) {
                     line = line.concat((String)words.elementAt(i));
                     wordCount+=10;
                System.err.println("adding line: "+line);
                lines.addElement(line);
    }

    I was bored at the time, im sure you can improve on this example immensely.
    import java.util.LinkedList;
    public class StoryClass {
         private final String storyOne = new String("WASHINGTON (CNN) -- Vice President Joe Biden brushed aside "+
                "recent criticism by predecessor Dick Cheney that moves by the Obama " +
                "administration had put the United States at risk, telling CNN on Tuesday " +
                "that the former vice president was dead wrong.\n"+
                "I don't think [Cheney] is out of line, but he is dead wrong, he told CNN's " +
                "Wolf Blitzer. This administration -- the last administration left us in a " +
                "weaker posture than we've been any time since World War II: less regarded " +
                "in the world, stretched more thinly than we ever have been in the past, " +
                "two wars under way, virtually no respect in entire parts of the world.\n"+
                "I guarantee you we are safer today, our interests are more secure today than " +
                "they were any time during the eight years of the Bush administration."+
                "In an interview with CNN's John King last month, Cheney said President Obama " +
                "had been making some choices that in my mind will raise the risk to the " +
                "American people of another attack.");
         public static void main(String[] args) {
              StoryClass sc = new StoryClass();
              sc.start(sc.storyOne);
         public void start(String story){
              LinkedList<String[]> allSentences = new LinkedList<String[]>();
              String[] paragraphs = getParagraphs(story);
              LinkedList<String[]> temp;
              for(String s : paragraphs){
                   temp = getSentences(s);
                   if(!temp.isEmpty())
                        allSentences.addAll(temp);
              for(String[] s : allSentences){
                   System.out.println(stringArrayToString(s));
         public String[] getParagraphs(String str){
              return str.split("\n");
         public LinkedList<String[]> getSentences(String sentence){
              LinkedList<String[]> list = new LinkedList<String[]>();
              int count = 0;
              String[] stringy = new String[10];
              String temp;
              for(String s : sentence.split("[ .,]")){
                   if((temp=s.trim()).length()==0)
                        continue;
                   if(count == 10){
                        list.add(stringy);
                        stringy = new String[10];
                        count = 0;
                   stringy[count++] = temp;
              if(count != 0){
                   String[] last = new String[count];
                   for(int i=0; i<count; i++){
                        last[i] = stringy;
                   list.add(last);
              return list;
         public String stringArrayToString(String[] s){
              if(s.length==0){
                   return "";
              StringBuilder sb = new StringBuilder();
              sb.append("[");
              for(int i=0; i<s.length; i++){
                   sb.append(s[i]).append(", ");
              sb.delete(sb.length()-2, sb.length());
              sb.append("]");
              return sb.toString();
    }Mel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Acrobat 10 comparability with Word in Office 2000

    I am still using Office 2000 (cause I like it so please don't suggest I upgrade to a newer version of Office) and having installed a new hard-drive downloaded the trial version of Acrobat X.  If I like it then planning to buy it.  When Acrobat X is installed, Word locks up during launch but if I remove Acrobat X (add/remove programs in control panel) then Word works perfectly.  This was not the case with an earlier version of Adobe on another computer (don't remember how many versions ago) but this feels like there is some new feature in Acrobat X that is incompatible with Word 2000.  The same problem happens whether I am using XP - service pack 3 or Windows 7 so I don't think this is an OS issue.  As background this machine is a Dell Latitude E5400 with an Intel P8700 dual core processor running at 2.53 Gig with 2 Gig of Ram.  Any ideas on a solution?  Does Adobe sell earlier versions of Acrobat?  Thanks,

    Does Adobe sell earlier versions of Acrobat?
         No.
    Regarding compatibility of Acrobat / MS Word versions; if using the PDFMaker installed by Acrobat you'll want to review
    http://kb2.adobe.com/cps/333/333504.html
    which address PDFMaker compatible applications.
    Acrobat 8 was the last version to support MS Office 2000 applications.
    Be well...

  • Acrobat guide disappeared from Word 2007 panel

    Hi,
    The Acrobat guide disappeared from Word 2007, but still ok on others Office 2007 sw. I´ve already tried to active Acrobat COM at Word Supplement, but without success. Hope that someone can help.
    Tks

    Michael,
    Tks for you help. It soved other minor problems with my Acrobat, but the problem wtih the Word remains. By "guide", I mean those button on the top of the screen, i.e. "File", "Edit", "Developer". It use to have a extra "guide" named "Acrobat", which disappeared from the Word, but stills ok in the others Office sw.
    Thanks anyway.

  • Cannot Re-Eenable Acrobat Add-in in Word 2007

    The Adobe Acrobat add-in in Word 2007 has become disabled and I cannot re-enable it. 
    When I go to Word Options - Add-ins - Manage COM Add-ins and try to tick the disabled Acrobat add-in I get the error: "This add-in is installed for all users on this computer and can only be connected by an administrator".
    I can, however can right click on the Word.exe run as Administrator and it is enabled.
    I tried removing the PDFMaker Add In and adding it again and enabling it
    It still does not change the user account Add In, associated to the user on this computer
    How can I re-enable the add-in?
    I'm using Word 2007 with Windows 7 Adobe X 10

    You can refer to the steps mentioned in this forum and check :
    forums.adobe.com/thread/1082813?tstart=30
    Regards,
    Ravi

  • Issues Acrobat Pro 9 and Word XP(2002)

    We installed Acrobat Pro version 9 a couple of weeks ago, and began experiencing problems with a couple of our VB.NET apps that invoke Word 2002. Basically, it appears that the presence of Acrobat Pro 9 causes Word 2002 to stop interacting with some VB commands. These same VB.NET apps function without incident under Acrobat Pro version 8.
    We are running Acrobat Pro version 9.1.3 and Word XP(2002).  The VB.NET apps were developed using Visual Studio 2005 version 8 and .NET Framework version 2.  We are using Windows XP Professional SP3.
    The specific error message being generated by the .NET apps is:
    Unable to cast COM object of type 'Word.ApplicationClass' to interface type 'Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)).
    The error is thrown when the app attempts to open a Word document.
    Has anyone encountered this problem?  Do you know of any web sites I could check that could possibly help out?
    Thanks!

    Please post in the SDK forum.

  • How to obtain the number of words of a protected pdf file that can't be converted into a word file?

    I need to get the number of words of pdf files. I usually convert them into word files to get the word count. Some pdf files are protected and can't be converted into word files. Is there another way to get the number of words of these protected pdf files? I use adobe professional XI Pro.

    Scroll through and read the answers available in the thread below. You may find the information helpful.
    Trying to write Javascript code to get word count
    Be well...

  • How i can count the number of words in a string?

    hi, i want to know how to count the number of words in a string
    e.g. java is a very powerful computer language.
    i will get 7 words.
    thanks in advance..

    Jverd, this has actually been answered, but due to an
    attack of goldie-itis, all the answers were hosed.
    The OP did get an answer, though.Yeah, I know. I just didn't know if he saw the answer before it went away.

  • In the new iOS-7 Safari, has the "reader" function been changed to eliminate the option to modify font size (and hence to modify the number of words per line), or is it just that I can't find how to do that?

    In the new iOS-7 Safari, has the "reader" function been changed to eliminate the option to modify font size (and hence to modify the number of words per line), or is it just that I can't find how to do that?

    iOS 7
    Seperate text size modification is no longer available in Safari Reafer.
    Use Settings.
    Settings >General > Text Size

  • Calling a file and counting the number of words in it-please help!!

    * @(#)WordCounterTwo.java
    * WordCounterTwo application
    * @author
    * @version 1.00 2007/11/17
    import java.util.Scanner;
    public class WordCounterTwo {
    public static void main(String[] args) {
         Scanner keyboard = new Scanner(System.in);
         String fileName;
         int countWords;
         System.out.println("Please enter the name of the file: ");
         fileName = keyboard.nextLine();
         System.out.println(countWords.lastIndexOf());
    }

    I am getting error message as follows:
    cannot find symbol constructor StringTokenizer() on line
    I am asking the user to enter the name of a file, and the output is supposed to display the number of words in the file that chosen. I'm not sure if I am going about this right way, and not sure why I am getting the erorr messages.
    * @(#)WordCounter.java
    * WordCounter application
    * @author
    * @version 1.00 2007/11/17
    import java.util.Scanner;
    import java.util.StringTokenizer;
    public class WordCounter {
        public static void main(String[] args) {
             String sentence;
             Scanner keyboard = new Scanner(System.in);
             StringTokenizer words = new StringTokenizer();  //line 17
             int numberWords;
             System.out.println("Please enter a sentence");
             sentence = keyboard.nextLine();
             sentence = words.nextToken();
             while (words.hasMoreTokens())
                  numberWords++;
             System.out.println(numberWords);
    }

Maybe you are looking for

  • Querying LOV ....

    Hi, I am working on some screen in which there is Item Lov.Fot this I created VO and AM.Problem is in LovVO my query is like this: Select * from xxxxxxx where vendor_id=yy. So where do i need to mention where clause? I tried creating Controller on LO

  • Impact of the MRP module on Financial data

    Hi, I wanted to play around with the MRP module that comes along with SBO - mainly to check out the features SBO offers and to find out the ease of use. I plan to test out on the TEST system and not PRODUCTION (LIVE). The question I have is, since I

  • Sending a reoccuring email

    I have 5 emails I need to send to 5 different people every month. I'd like to have it done automatically so I don't have to think about it anymore. I've googled it and it I get instructions for scripts, automater, ical events. OMG is there not an eas

  • How to pipe postscript into Preview.app

    I thought it couldn't be done, but on MacOSX hints, someone suggested this to view postscript-formatted man output: pman() { man -t "$@" | /usr/bin/open -f -a Preview; } I still couldn't get it to work on a generic postscript stdout. Then I decided t

  • Does wowslider work with dreamweaver

    DDoes wowslider work in dreamweaver?