Character counting (count down) in Acrobat

I have a PDF file with text fields that is going to be used by some of our writers and integrated into presentation decks across multiple programs. We have a lot of it working well and I've been able to piece some bits of code together here and there but I'm no programmer. Where I've hit a roadblock is with adding a visual character counter to the file.
The file is set up to reflect an actual printed piece where there are limitations on line counts and characters per line. The line counts we aren't as concerned with but having a counter display how many characters you've typed to a line is important. I hope this makes sense. So basically we have one area where you can have a total of 10 lines and 30 characters (including spaces) on each line for a total of 300 characters. What would be great for us is if the text field could have a counter pop up showing something stating that the writer has entered "10 out of 30" characters for the particular line they're on.
Is this a simple fix or something where I could be pointed somewhere to put a script togeteher? I've tried for a few days now and frankly this is like launching a missle into space for me. I'd greatly appreciate any help/insight you could offer and would be glad to share my expertise on any design or experience issues you may be having.

Those are all great ideas Max and certainly stuff we can consider for building on this.
The reason we need to block the characters after a certain count is due to a system this will be entered into. Our client will be copying and pasting the blocks of text into a technology platform that will then print the info. We were given a specific set of instructions for how many characters and lines the printed piece could hold.
The fun part is that before this goes into production it has to first be presented several times in different presentation decks (some integrated into Powerpoint, others just PDFs). We've tried similar exercises in the past with Word and other programs with not a lot of satisfaction from our client. So, no pun intended, but Acrobat offered the most portable file format to accomplish our needs.
Though the original code posted above doesn't exactly solve our problem it's a great start for us and gives us somethign to build off of.
This is a simple one I think. What's the command to add text to a field? So if I wanted to add the character "\n" once the text was full. I guess that would be something like (just a note, not real code)…
var hardreturn = \n;
if (max == 25) {
addText.value = hardreturn;
(sorry a million times for my horrible programming skills)
Thanks for everyone's input thus far. This is a great and informative discussion.
Message was edited by: b.whitham

Similar Messages

  • How do I limit the character count in a text field?

    I'm creating a form for co-workers to use when creating web content. I need to restrict their character count for items like headlines, titles, subtitles, etc. Any suggestions on a ready-made form to use out there? And how can I limit those fields so they don't generate content that will then need to be edited down?
    Thanks,
    EAW

    Check out this post:
    http://forums.adobe.com/message/4364378
    Randy

  • Count Down Time Zone?

    Hey all, i have come to this fourm a few times and every time
    i posted help i got it and i got the right help to. So here i am
    back again. Now here my problem. i made this count down for a
    certain event. (yes i got help from someone) and it works fine i
    made all the images it works great,,,so i though then i thought id
    experament. So i changed my computers time zone and guess what. The
    Time changed on the count down. Can i make my count down'er', count
    down from a specific time zone so it will count down and be the
    same for everyone? so no matter what time zone you have it will
    ONLY be for a certain type of time zone? Heres my Count down so
    far;
    http://snro.ifastnet.com/wipe.html
    And heres the script i have for my count down. Can someone
    give me a better code, so it will keep my counter the exact same
    just make it count down from only 1 specific Time zone? (AS below)
    quote:
    stop();
    currentDate = new Date();
    thisYear = currentDate.getFullYear();
    // Date( year, month-1, date [, hour [, minute [, second [,
    millisecond]]]])
    eventDate = new Date(thisYear, 9, 28, 12);
    eventMillisecs = eventDate.getTime();
    counter.onEnterFrame = function(){
    currentDate = new Date();
    currentMillisecs = currentDate.getTime();
    this.msecs = eventMillisecs - currentMillisecs;
    if (this.msecs <= 0){
    play();
    return;
    this.secs = Math.floor(this.msecs/1000);
    this.mins = Math.floor(this.secs/60);
    this.hours = Math.floor(this.mins/60);
    this.days = Math.floor(this.hours/24);
    this.msecs = string(this.msecs % 1000);
    this.secs = string(this.secs % 60);
    this.mins = string(this.mins % 60);
    this.hours = string(this.hours % 24);
    this.days = string(this.days);
    while (this.msecs.length < 3) this.msecs = "0" +
    this.msecs;
    if (this.secs.length < 2) this.secs = "0" + this.secs;
    if (this.mins.length < 2) this.mins = "0" + this.mins;
    if (this.hours.length < 2) this.hours = "0" + this.hours;
    while (this.days.length < 3) this.days = "0" + this.days;
    for(movie in this){
    if (this[movie]._parent == this)
    this[movie].evaluateFrameFrom(this);
    MovieClip.prototype.evaluateFrameFrom =
    function(variableClip){
    var nameArray = this._name.split("_");
    var numberSet = variableClip[nameArray[0]];
    var character = number(nameArray[1]);
    var frame = 1 + number(numberSet.charAt(character));
    if (this._currentframe != frame) this.gotoAndStop(frame);
    Thanks!
    Edit** If you can the time zone i need it clocked to is
    (GMT-06:00) Central Time (US & Canada)

    "Pitchsole" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hey all, i have come to this fourm a few times and every
    time i posted
    > help i
    > got it and i got the right help to. So here i am back
    again. Now here my
    > problem. i made this count down for a certain event.
    (yes i got help from
    > someone) and it works fine i made all the images it
    works great,,,so i
    > though
    > then i thought id experament. So i changed my computers
    time zone and
    > guess
    > what. The Time changed on the count down. Can i make my
    count down'er',
    > count
    > down from a specific time zone so it will count down and
    be the same for
    > everyone? so no matter what time zone you have it will
    ONLY be for a
    > certain
    > type of time zone? Heres my Count down so far;
    >
    >
    http://snro.ifastnet.com/wipe.html
    >
    > And heres the script i have for my count down. Can
    someone give me a
    > better
    > code, so it will keep my counter the exact same just
    make it count down
    > from
    > only 1 specific Time zone? (AS below)
    >
    >
    quote:
    stop();
    >
    > currentDate = new Date();
    > thisYear = currentDate.getFullYear();
    >
    > // Date( year, month-1, date [, hour [, minute [, second
    > millisecond]]]])
    > eventDate = new Date(thisYear, 9, 28, 12);
    > eventMillisecs = eventDate.getTime();
    >
    > counter.onEnterFrame = function(){
    > currentDate = new Date();
    > currentMillisecs = currentDate.getTime();
    > this.msecs = eventMillisecs - currentMillisecs;
    > if (this.msecs <= 0){
    > play();
    > return;
    > }
    > this.secs = Math.floor(this.msecs/1000);
    > this.mins = Math.floor(this.secs/60);
    > this.hours = Math.floor(this.mins/60);
    > this.days = Math.floor(this.hours/24);
    > this.msecs = string(this.msecs % 1000);
    > this.secs = string(this.secs % 60);
    > this.mins = string(this.mins % 60);
    > this.hours = string(this.hours % 24);
    > this.days = string(this.days);
    >
    > while (this.msecs.length < 3) this.msecs = "0" +
    this.msecs;
    > if (this.secs.length < 2) this.secs = "0" +
    this.secs;
    > if (this.mins.length < 2) this.mins = "0" +
    this.mins;
    > if (this.hours.length < 2) this.hours = "0" +
    this.hours;
    > while (this.days.length < 3) this.days = "0" +
    this.days;
    >
    > for(movie in this){
    > if (this[movie]._parent == this)
    this[movie].evaluateFrameFrom(this);
    > }
    > };
    >
    > MovieClip.prototype.evaluateFrameFrom =
    function(variableClip){
    > var nameArray = this._name.split("_");
    > var numberSet = variableClip[nameArray[0]];
    > var character = number(nameArray[1]);
    > var frame = 1 + number(numberSet.charAt(character));
    > if (this._currentframe != frame)
    this.gotoAndStop(frame);
    > };
    >
    > Thanks!
    >
    To let you be the one to further experiment I will point you
    in the right
    direction.
    http://www.adobe.com/livedocs/flashlite/2/main/wwhelp/wwhimpl/common/html/wwhelp.htm?conte xt=LiveDocs_Parts&file=00000468.html
    Use GMT as your main reference for everyone, then offeset
    that time to your
    timezone.

  • How do I found the character count in a document

    How do I find character count and word count in a doumen on my IMc?

    Created with which application?

  • Character counter does not display data on IE when counter is 0

    Hi,
    I am implementing a character counter in ADF using Javascript (referencing this http://www.oracle.com/technetwork/developer-tools/adf/learnmore/10-char-input-counter-169133.pdf).
    I display the string --> 'x' characters left
    The problem that I am facing is: when my character counter becomes 0 (can no longer enter any text, the maxlimit of the input field is reached) then on IE browsers, it does not show the character '0'. It displays a blank. On Firefox and Chrome, however, the UI gets displayed as expected i.e. 0 characters left.
    Can I get any pointers how to fix this on IE. Have tested with IE versions 7,8,9. JDev version is 11.1.1.5.0
    Here is the code snippet that I am using:
    Javascript:
    function showCharacterCount(event) {
    var keyCodePressed = event.getKeyCode();
    if (keyCodePressed == AdfKeyStroke.TAB_KEY
    || keyCodePressed == AdfKeyStroke.ARROWLEFT_KEY
    || keyCodePressed == AdfKeyStroke.ARROWUP_KEY
    || keyCodePressed == AdfKeyStroke.ARROWRIGHT_KEY
    || keyCodePressed == AdfKeyStroke.ARROWDOWN_KEY) {
    event.cancel();
    else {
    textfield = event.getCurrentTarget();
    textfieldValue = event.getSource().getSubmittedValue();
    textfieldLength = textfieldValue.length;
    textfieldMaxLength = textfield.getMaximumLength();
    o = AdfPage.PAGE.findComponent('characterCounter');
    characterCounterValue = o.getValue();
    characterCounterValue = textfieldMaxLength - textfieldLength;
    o.setValue(characterCounterValue);
    UI:
    <af:panelGroupLayout id="pgl3" layout="horizontal">
    <af:outputText id="characterCounter" clientComponent="true" value="325"
    inlineStyle="text-align:right; display:block; width:100.0px;"
    binding="#{viewScope.myBean.characterCounterBndg}"/>
    <af:outputText value="characters left" id="ot7"
    inlineStyle="padding-left:5.0px;"/>
    </af:panelGroupLayout>
    <af:inputText id="it2" rows="4" columns="53"
    value="#{viewScope.myBean.text}" maximumLength="325" clientComponent="true"
    simple="true">
    <af:clientListener method="showCharacterCount"
    type="keyUp"/>
    </af:inputText>
    Thanks in advance.

    Try converting from dynamic data, that seems to take care of the problem. Also, you could use the regular field point VIs instead of the FP express VI. Check out the attached VI.
    -Alan A.
    Attachments:
    FP_Read.vi ‏30 KB

  • After what seems to be a normal upgrade to the new Lion OS. My computer counted down to restart and left a white screen with only a file folder in the center of the screen with a ? in it. How do I get my screen back to normal? Jim L.

    After what seems to be a normal upgrade to the new Mountain Lion OS X on my early 2008, 24" iMac. My iMac counted down to restart but did not turn all the way off. At the end of the count down the screen went white with a small file folder flashing on and off in the center of the screen. Also there is a ?, question mark in the miaale of the file folder. The screen responds to no keyboard or mouse commands. Request help.

    My computer was doing the same as yours hinikuru but now there is a change. I turned my iMac off by the button on the back and left it off for about an hour. When I just turned it on the center Apple logo was back and soon the  loading logo for the new Mountain Lion program came up. On the bottom of the logo there is a horizontal sliding bar that says the program will take 34 minutes to load. Time will tell. I have two iMacs and if this goes we'll I will install the new Mountain  Lion tomorrow. Hinikuru, I was about to follow the information in one of the side bar blocks titled "More like this" on the right side of this screen when my iMac seemed to fix itself! Good luck. I think not all is lost.

  • Inserting new line in script output based on character count

    Dear All,
    I want to print amount in words on cheque. Condition is if on the first line the character
    count reaches 40 the rest words should be printed in next line. Also amount in word
    should be printed  on the same line. 
    I have the internal table values itab-amtwords(amount in words and ) itab-rbetr(amount in number)
    I want to print them something like this -
       Sixty seven crore eighty five lakh twelve thousand     
       fourty five                                                                678512045.00
    the amount in word should come in second line only. The amount in word if reaches certain point
    the rest word should print in second line.
    How to write the logic in script editor
    Regards,
    Sandeep

    the amount in number should print in the second line.
    2163126312.00
    regards
    sandeep
    Edited by: Sandeep Sahoo on Apr 17, 2009 4:34 PM
    Edited by: Sandeep Sahoo on Apr 17, 2009 4:38 PM

  • Inserting new line in output based on character count +sapscript

    Dear All,
    I want to print amount in words on cheque. Condition is if on the first line the character
    count reaches 40 the rest words should be printed in next line. Also amount in word
    should be printed  on the same line. 
    I have the internal table values itab-amtwords(amount in words and ) itab-rbetr(amount in number)
    I want to print them something like this -
       Sixty seven crore eighty five lakh twelve thousand     
       fourty five                                                                678512045.00
    the amount in word should come in second line only. The amount in word if reaches certain point
    the rest word should print in second line.
    How to write the logic in script editor
    Regards,
    Sandeep
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Apr 17, 2009 10:46 AM

    the amount in number should print in the second .
    2163126312.00
    Regards,
    Sandeep

  • Counting down to zero from a specified number

    I'm sure this is a very simple thing to do, but I can't figure out how. I want to count down from a specified number to 0, then restart counting at that orginal number. The trick is that I need it to place it in a case structure, and have it restart counting when it switches states (i.e. from TRUE to FALSE and vice versa).
    Example: Say I want to count down from 2 (as specified in a constant). Should look like:
    FALSE
    2
    1
    0
    2
    1
    0
    2
    ---TRUE
    2
    1
    0
    2
    1
    ---FALSE
    2
    1
    0
    2
    1
    I'm sure this is easy to do, but I've been wracking my brain!
    Thanks!
    -Brendan

    While I don't know what you mean by "when it switches states", I have attached one solution using an event structure. Here "it" is simply a boolean control that switches states under operator control.
    See if this makes sense to you.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    DownCounter.vi ‏30 KB

  • Character Counter for ADF 11g RichTextEditor

    I am rewriting an application in 11g RichFaces. The original app had a text area that had a maximum allowable length and used a Javascript function to display to the user how many characters they had left as they were typing. In the new app, I have replaced this functionality with the WYSIWYG RichTextEditor, but would like to give them the same functionality that they had before. I would like to display, as they type, a character count. The count needs to be of the actual displayed characters, not the count of HTML characters that are generated behind the scenes by the RichTextEditor.
    Is this possible?

    huh? waking up a 1-year-old thread to ask an unrelated question (and a demand for us to write your code for you to wit)?

  • Character Count Bug? (IDCS4 WinXPSP3)

    Here's a little bug. Apologies if it's been mentioned before.
    The Info palette tells you how many characters your selection contains. If you select the word "hello" the Info p. says: "Characters: 5"
    If you select an entire line that happens to contains a foontnote marker, the character count includes all the characters in the footnote itself. So while an average line might have 70 characters, a line containing a footnote might appear as though it has 1000 characters or more (depending on the length of the footnote).
    Now, as scripters will be aware (and please correct me if I'm wrong), the footnote marker is the parent of the footnote text. So that's probably where the bug comes in.
    But I don't think this should be reflected in the Info palette.
    Thanks,
    Ariel

    Have you reported it? Adobe - Feature Request/Bug Report Form

  • Character count

    Hi,
    As most of the InDesign User know info window show text box character count, words even the paragraphs their in selected text box.
    I want to know is their a way to see these all text layer stats in Photoshop?
    Thanks
    Jamal

    You could probably use a Script to evaluate a selected Type Layer. (It may be difficult, though, to get the word count depending on your definition of word.)
    To have that feedback on display permanently you probably would have to create an html5 Panel.

  • Dynamic character count

    Is it possible to have a display of how many characters are showing in a text box (without highlighting text) and when the size of the box is changed the character count is updated.
    For example if I have a text box and I have more text in that box then can fit so it is "busting out of the box"... can I get a character count display telling me how many characters are in the text box disregarding the overflow text... and as I pick up the text box handles and start resizing the text box the character count display updates on the fly... only counting the characters visible in the text box and not the ones that have busted out of the box.
    Regards, Tim

    There appears to be something wrong with your InDesign. This is what it looks like for me:
    Try resettting your preferences.

  • Character count display problem in IE

    Hi all,
    I have implemented a character counter in ADF using Javascript (referencing this http://www.oracle.com/technetwork/developer-tools/adf/learnmore/10-char-input-counter-169133.pdf).
    The problem that I am facing is: when my character counter becomes 0 (can no longer enter any text, the maxlimit of the input field is reached) then on IE browsers, it does not show the character '0'. It displays a blank. On Firefox and Chrome, however, the UI gets displayed as expected i.e. 0 characters left.
    Let me know how to fix this on IE. Have tested with IE versions 8,9. JDev version is 11.1.1.7.0.
    Thanks,
    Anu.

    Hi,
    debugging the JavaScript to see what the value of the variable really is is a good start. If it turns out that it is becoming null, then you could use a if() case in that whenever the value is null you set it to 0. If the value however is correct but just doesn't render then you can try and transform it to a character instead of a number to see if the numeric output is the problem. This is how I would address the problem
    Frank

  • How do you add old movie count downs to Final Cut Pro X ?

    I am trying to make a video from the films that i recorded while skiing, and i was wondering how i would add an old movie count down into Final Cut Pro X, becasue i cant seem to find anywhere that does it.
    Thanks for the help guys.

    No possible.... You'll need to jot them down manually. Very painful especially if your dealing with a 2hr long DVD

Maybe you are looking for

  • How to create file on application server?

    how to create file on application server?

  • How do I get data to the from in a form based on a stored procedure

    I would like to create a form based on a stored procedure. I have bound LOV's that lookup the ID of the data that is to be displayed on the form. Then I have a button that reads the database and populates the fields on the form. This is our current U

  • Why is updating such a pain and so confusing

    In my post below you will notice I am currently using 9.1 I downloaded the updates for 9.2.1 and 9.2.2 I click on the 9.2.1 and I get a start up disk with very confusing instructions. Where is this disk supposed to go and then since this is the 1st f

  • Using iPhoto after photo transfer

    As a novice to Mac, I have recently learned how to transfer photos into iPhoto from my mobile. However, once imported my photographs are smaller than normal screen size. Can they be edited to full screen size. I have tried increasing the slider to ma

  • Keep Pool question

    If I specify db_keep_pool_size as 200 M and I am presently keeping 150 M of tables and indexes in keep pool. What happens when the size of these segments goes beyond 200 M? Does the query throw an error? Thank You