Converting prices to words

I'm trying to build a form to use as an estimate sheet for jobs.One line of this form is of course quoted price. The part I can't figure out is how can I get the value entered as quoted price to autofill another section of the form with the price as words (i.e. One hundred thousand dollars and ten cents ) instead of numbers. Can anyone help me out here?

It is built in to LiveCycle but for Acrobat you need to the use the some JavaScript. A sample check with a smaple funcition was provided as a smaple check.
// document level function;
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;
}// end document level function;
// custom JavaScript calculation for field with words;
var f = this.getField("Number"); // adjust for field with numbers to convert to words;
event.value = ConvertToWords(f.value);
// end field calculation;

Similar Messages

  • Is there a free version of Adobe to allow me to convert Excel and word files to PDF's

    is there a free version of Adobe to allow me to convert Excel and word files to PDF's

    Nothing free no.
    At best there is a subscription you can purchase for a relatively low monthly price ($7.50 per month) that can be accessed through Adobe Reader (which is free).

  • Is there an API or Open Interface to convert Price Lists?

    Hi,
    Is there an API or Open Interface to convert Price Lists?
    What are the additional setups needed to do implement Price Lists ?
    Im new to Advnaced Pricing and Order Managment.
    Thanks and Regards,
    MPH

    There is the Price List Setup API (QP_Price_List_PUB.Process_Price_List) which you'll find details for in the Order Management APIs manual and the Price List Bulk Loader which is detailed in the QP user guide plus there's lots of good info and example scripts on My Oracle Support.
    Apart from qualifying your price list header as per your business requirement (in other words, restricting its use to particular OUs, customers, products, order types etc.), in the simplest case the price list itself can be just a simple list of discrete items with their associated prices. However, you may also need to consider:
    <li> Multicurrency - do you want to have multiple price lists, one for each currency, or one price list in a base currency with multicurrency conversions in the background? (the latter being much the easiest to maintain).
    <li> Is your business requirement best served by pricing by discrete inventory item codes? by item categories? by pricing attributes? (this being the mapping of some properties of your data to a named pricing attribute, the value being collected from a lookup, entered at order entry, or derived via custom PL/SQL),
    <li> Consider using secondary price lists if this allows your pricing information to be structured better
    <li> Do you intend to enter a fixed value against each price list line or to calculate a price by way of a dynamic or static formula?
    Regards,
    Jon

  • Convert multiple files (word docs) to multiple pdf

    Hi,
    Is there a script I can use in batch processing to convert about 1500 word documents into pdf? I know it's possible to convert multiple files into one pdf, but this is no good to me. Doing these conversions one by one is going to take forever!
    I've tried selecting a few documents at a time and then selecting "convert to pdf" from the right-click menu, but each one requires that you tell it where to save, and then opens the file when it is done.
    I need to convert Word files on a regular basis for work, and could really use a batch process for this with so many to do!
    I have Acrobat 7 Pro (version 7.1.0) on XP Pro SP 2 at work, and Acrobat 8 Pro (Version 8.1.2) on XP Pro SP 3 at home.
    If there is anyway it's possible to do this via a batch process I would really appreciate knowing how!!
    Apologies if this has been covered in another thread, I searched but couldn't find anything.
    Thanks in advance :)

    I have Acrobat 9 Pro. I can batch convert Word docs to PDFs by doing this:
    1. Open Acrobat Pro. Click File > Create PDF > Batch Create Multiple Files...
    2. A window will open prompting you to add files. Click Add Files > Add Files... OR Add Folders... If adding a folder, navigate to it, and click OK to add it to the list. You can also select a bunch of files and drag & drop them into the Add Files window.
    3. Once you have all the files listed that you want to convert, click OK. A new window called Output Options will open. In this window, select your preferred settings. For me, I want all the new PDFs to have the same filename and be in the same folder as the Word docs, so I choose these settings:
    4. Click OK, and then the batch process will begin running. You will see Word opening and closing. However, you won't have to click Save or anything. You can run it unattended. The process takes a little while, so I usually set up a batch to run, then go to lunch. Once finished, you should have all your new PDFs:
    Hope that helps someone!

  • Convert numbers into words

    i work on release 11i application and converts some reports to run with xml publisher
    i want to convert a total field that exist in po report to words it seems to convert number into words isthat possible i tried to make this in oracle reports and it run successfully but there is a problem when converting that report to run with xml publisher .
    any help will be approtiated.

    Use ap_amount_utilities_pkg.ap_convert_number
    E.g.
    SQL> select ap_amount_utilities_pkg.ap_convert_number(trunc(12345678)) from dual;
    AP_AMOUNT_UTILITIES_PKG.AP_CONVERT_NUMBER(TRUNC(12345678))
    Twelve million three hundred forty-five thousand six hundred seventy-eight
    Gareth

  • How do I make the images look clear in PDF when converted from MS Word?

    Hi
    When I convert an MS Word-2010 file (which  contains  images also) to PDF through Acrobat X Pro, some images which are of bigger size do  not look very clear. Is there any workaround for this problem? Please  reply. It's quite urgent.
    Thanks

    In my experience (not necessarily the best), I find it best to rescale image copies with a graphics package before importing into WORD or whatever. Resize and then set the resolution to about 600 dpi before you import. The issue of using the clipboard appears to be an issue with WORD 2007 and such. I clipped a 300 dpi image into my technical word processor and then back to a graphic editor and all was preserved. I did the same with WORD 2007 and everything got messed up and the resultant image looked terrible. In fact, in WORD I got the same result if I imported the picture or clipped it from my graphics package. So it appears there are some strange issues with WORD itself.
    I am not trying to make any claims here, but just making an observation. The original image was at 300dpi. WORD also changed the 8-bit B&W photo to a 24-bit photo and reduced the number of pixels from 774 per width to 252 per width about a factor of 3 reduction in pixel resolution when clipped. When I expanded the image size in WORD, then the clip size increased also. When I do the same expansion of the image size in my word processor and then clip back to IrfanView, the original image is retained. My only conclusion is that OFFICE 2007 plays around with graphics and it does not seem to make any difference if you clip the image into WORD or import it, WORD still messes around with it. My guess this is just a general MS thing.
    Some folks a year or 2 ago got me to looking at nice sunsets in PPT. There were all sorts of issues with creating the PDF (AA8) from the PPT to get a reasonable result. The image obtained from the MS converter seemed to keep the picture nice. The images obtained from PDF Maker and printing to the Adobe PDF printer gave slightly different results and tended to break the image into smaller parts that often left little lines in the picture if you zoomed in. Folks were blaming this on Acrobat and yet using the same version of Acrobat with OFFICE 2003 the sunset came out great.
    This post is a bit jumbled, but the jist is that a lot of the graphics issues with WORD files seem to go back to WORD itself  and possibly with hooks MS put into OFFICE (OK, no proof on that and probably impossible to prove) to mess up Acrobat conversions. It would be interesting to see if the same result for the PDF is obtained from other converters, or if it is just something that OFFICE 2007 does "nicely" for Acrobat.
    Sorry for going off the deep end, but I just have a major annoyance with OFFICE starting with 2007, particularly for things like this. They couldn't get equations right either, just one more thing that they messed up. As far as I am concerned, a lot of the issues stem from MS and not Acrobat.
    Just for the heck of it, I ran the PPT picture through Open Office and used both the PDF export and the print to the Adobe PDF printer. Both retained the full image. However, when clipping from OOP to Irfanview, the resolution was 96dpi. The result seemed to be dependent on the zoom. So there are definitely some issues with copy and paste, at least with how some packages handle it.

  • I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out wh

    I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out what is going on? We have it set on auto renewal so I know its not that we haven't renewed this subscription, because we pay automatically.

    Hi olivias,
    It sounds like there may be some confusion on your system about what application should be associated with PDF files. You can reset filename associations by following the steps in these articles (depending on your operating system):
    How to change the default application for a file type | Macworld
    http://windows.microsoft.com/en-us/windows/change-default-programs#1TC=windows-7
    Please let us know if you have additional questions.
    Best,
    Sara

  • Converting pdf to Word 2003 in Acrobat 9 Pro

    I am using Acrobat 9 Pro.  I want to convert pdfs to Word 2003.  I have followed the instructions to export to Word, but when I get to the dialog box that selects the conversion method, I choose Flowing, which is recommended, and click OK, and I get an error message that my PDF document may be corrupt.  This happens with every pdf, whether it is a form downloaded from the internet or a text document I have created myself.  If I try to convert to RTF instead, it makes the "conversion", but in doing so, it creates a file containing an image that is not editable -- it does not create a plain text, editable file.
    Is the problem that I am using Word 2003?  Word 2003 is not on the list of file formats to which the pdf can be exported, but when I get to that screen, I choose Workshare PDF in Word (which I believe I read somewhere is the correct choice for conversion to Word 2003) as my selection and it gets me to the "conversion method" screen (which gets me to the corruption error message). Again, even if I choose rtf, I do not get an editable document.
    Any ideas???

    Something to try -
    Export the PDF to RTF.
    Open the RTF file with Word Pad.
    Save As (perhaps to a new filename -- 'something_bis.rtf')
    Open this file with MS Word.
    Not particularly surprising that the PDF you posted behaves poorly when 'worked' with Acrobat.
    It is an output of Ghostscript.
    Compounding the awkwardness of export is the fact that the PDF is not a Tagged PDF.
    A significant raison d'etre for Tagged PDF is to support export of PDF content to a word processor application.
    Be well...

  • Error when I sign in to the Convert PDF to Word feature

    When I sign in to the Convert PDF to Word feature, after I enter my password I get a message "An error occurred while signing in" and the feature locks up, giving the same message if I use the "convert" button, can anyone help with this.  Adobe Support sent 3 emails to reset my password all of which timed out before I could get to them. I have changed my password and it is still the same. Help please.

    Hello Kathie,
    Sorry for the inconvenience that has caused to you.
    Please let me know if you have tried converting any other PDF to word with Reader.
    Alos, please sign up at "https://cloud.acrobat.com/" using your Adobe ID credentials. Click on 'ExportPDF' tab and upload the PDF that you want to convert to Word.
    Let me know if this converts fine.
    Hope to hear from you.
    regards,
    Anubha

  • I get an error message when trying to convert to a word document

    i get an error message when trying to convert to a word document

    Its with the ExportPDF online service.
    This is a snip of what it looks like:

  • 'unexpected error' when trying to convert PDF to word

    THis keeps coming up in the forum and hasnt been answered. trying to convert PDF to word but it says there is an unexpected error. help please.

    Hi!
    Please send us a copy of the file here with a brief description so we can take a look at it. Thanks! Sorry for the problems.
    Dave, Adobe

  • I am trying to convert PDF to word. With my PC  I get a message  "Error occurred while trying to access the service.   It worked fine for a long time.  Has been doing this for days now with all files i try to convert.

    I am trying to convert PDF to Word with Adobe Export PDF on my PC.  I get the message " error occurred while trying to access service".  Has worked fine in past.  Has been doing this for a few days now on all files i try to convert.    Any ideas?? Thanks

    Hi bert090909,
    Are you trying to convert your files from within Adobe Reader? If so, please make sure that you have the most current version by choosing Help > Check for Updates. Earlier versions of Reader could cause the specific error that you're reporting.
    Please let us know how it goes.
    Best,
    Sara

  • Having problems converting pdf to word. I'm not able to convert the file, what do I need to do?

    having problems converting pdf to word. I'm not able to convert the file, what do I need to do?

    Hi prates77,
    I'm sorry to hear that you're having trouble converting files. Are you receiving the conversion error regardless of the file that you try to convert? Does the error occur whether you use the web interface, or convert via Reader? And an odd question: how many files do you have stored in your Acrobat.com account? We have seen reports of this error when there are a large number of files stored in the root folder of your Acrobat.com account.
    I look forward to hearing back from you.
    Best,
    Sara

  • I have Adobe Reader XI with the package that allows me to send pdfs and convert pdfs to Word. When I open a pdf and try to search the search shows no matches even though the word I am searching for is in the document. Any suggestions how to search?

    I have Adobe Reader XI with the package that allows me to send pdfs and convert pdfs to Word. When I open a pdf and try to search the search shows no matches even though the word I am searching for is in the document. Any suggestions how to search?

    Once again, my thanks for your assistance. If I may impose on your generosity one more time, if I understand you correctly if I create a document on Word or WordPerfect, print it and scan it to create a pdf, the search function will not work. But, if I create the pdf document in Word the search function will work. Unfortunately, I am not sure how I create a pdf document in Word other than by printing it and scanning it. Could you please explain.
    William B. Kohn, Esq.
    General Counsel
    Paul V. Profeta & Associates, Inc.
    769 Northfield Avenue
    Suite 250
    West Orange, New Jersey 07052
    (973) 325 - 1300
    (973) 325 - 0376 (Facsimile)
    [email protected]<mailto:[email protected]>

  • How do I convert a Micrtosoft Word 2003 document to an editable pdf?

    How do I convert a Microsoft Word 2003 document to an editable pdf?

    You can try using Adobe ExportPDF (https://www.acrobat.com/exportpdf/en/home.html).

Maybe you are looking for