Uncheck "Scroll Long text" in all its forms in a doc using JS

I'm new to JS and for years I did the basics of programming (by basic, I hear a lot BASIC). I work for a training company and am currently doing our electronic appraisals. This implies the important creation (sometimes up to 100 pages) those containing multiple forms on each page. Current document I am train has about 900 forms. Using the function wizard automatically to create the forms, the default properties are automatic text size and 'Text Long scrolling' is always checked with "Several lines" checked. I want to create a JS that I can run what will change the font size to be a fixed size; Uncheck the box 'Scroll Long text' and check "Multiline" preference (if acrobat pro seems to do a good job of making the last part it itself most of the time).

I have worked for about 3 hours and finally managed to get the first bit to work. My code to change font size is:------.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

var newTextSize = 8

for (var i = 0; i < this.numFields; i ++)
{
fNm var = this.getNthFieldName (i);
this.getField (fNm) .textSize = newTextSize
Console.println (i + ":" +)
this.getField (fNm) .textSize);

}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Last piece is just a check. It works to convert the large textsize. But I'm stuck on how to check/uncheck the boxes and any help would be much appreciated.

I use Adobe Acrobat Pro XI and as mentioned previously, the above code is the first thing I've ever tried with JS and most of which was awkward around through other things I found on the net until I finally got something that worked this way, is there some deep stuff I might need to ask additional questions.

Thanks for the help guys.

You must also make sure that you submit only changes to text fields, otherwise you can end up with an exception, which stops your program, and some fields cannot be processed:

var newTextSize = 8

for (var i = 0; i)< this.numfields;="" i++)="">

fNm var = this.getNthFieldName (i);

var f = this.getField (fNm);

If (f.type == 'text') {}

f.textSize = newTextSize;

f.Multiline = true;

f.doNotScroll = true;

}

}

Tags: Acrobat

Similar Questions

  • Long text only, spend IDCS3 to IDCS5 for docs?

    Question: Were all really compelling long-doc facilities added summer making an upgrade to Acrobat 9 Pro from my current IDCS3 and Acrobat 7 Pro and IDCS5 really all that attractive?

    Or if the upgrade will give me only what I'll never use all being perhaps is full of new headaches I had never dreamed. (I heard for example, there have been problems to import very long Word documents).

    Thanks in advance for any yeahs or against that cognicenti may care to offer.

    Dharmamitra

    Kalavinka press

    (I'm running XP/SP2 box).

    ************

    OK, some optional information and slightly superfluous reading:

    I'm about to dive back into another series of several languages, complex, note-heavy, long docs, text only books up to 800 pages, not unlike the ten I published with IDCS3 2 years (kalavinkapress.org).

    What I'm looking for? :

    (a) wonderful ability to styles perfectly round trip, paragraph and character intact, in and out of: 1) PDF. and (2) Word.

    (b) great ability to record whole books or chapters in the ID files in all formats necessary electronic books and web pages, easily readable on any portable devices without screwing the Sanskrit diacritical and signs of Chinese characters in the output file.

    improved indexing capabilities c)

    (d) Notes, too. (Not only the end notes I use.) i.e. I want to have two references and endnotes.

    Grep/line styles:

    I think that the addition of Grep, and styles the styles of line for CS4 and CS5 is defintely worth change if you enter in their use.

    For example, on a 300-page book, I need the start a sentence that had a full colon after it is "BOLD".

    Normally I'm looking

    ^.+?\:

    And apply the character style "BOLD".

    But now I don't do that I built in the Style of the body in GREP styles paragraph and inserted the grep metacharacters and selected a style.

    Very easy to do.

    Dialing options:

    CS5 also offers best paragraph numbering Options - there are more formats of numbers to choose from, such as from 1 or 01 or 001-0001

    Notes

    In terms of notes - they have been updated since CS2 - join the cause http://forums.adobe.com/thread/619776?tstart=30

    No column over in a scheme of column 2 or more. (Despite the addition of columns length/split (see below).)

    Duration/Split columns:

    New to CS5 where you can

    In a 2 or more column layout 2 column text Span.

    You can also split a paragraph of text in 2 or more columns.

    Although I get a lot of slow down on several pages using this featute and it may even cause my computer crash - so I have no-span/split columns before making edits and reapply them.

    Background tasks:

    If you've never posted in PDF format a manual of 1 200 pages with lots of diagrams and images you know that it takes a long time to complete.

    Now CS5 introduces the PDF export in the background (under window > utilities > background tasks) and a small indicator on the title bar to illustrate a background task is currently running.

    This means that you can continue on other projects while the PDF file is made. Without more to wait 5 or 10 minutes to get a PDF output.

    The problem with background tasks

    It does not work with the book panel. If you do long documents this feature is useless for you. Where you really need it is a background task to save you time (where time = money) then background tasks is an unfinished addition to CS5.

    Acrobat:

    I did not really any great advantage to move from Acro 7-Acro 9 although - for long text doctors.

    Is it worth? I don't know - there are a lot of neat features. If you're constantly waiting for a PDF file to export and that cost you time (where time = money) then this is definitely worth (less the number of the book panel).

    Check out the What's New http://help.adobe.com/en_US/indesign/cs/using/WSa285fff53dea4f8617383751001ea8cb3f-7169a.h tml

  • How can I print my form with long text?

    I created a form in Adobe Acrobat 9 with text fields to fill out.  Some of our users need to print the form after completion and my form creates Ahmed bars to read the text that is long and extends beyond the text box.  How to change the form where all of the text will be printed?  The text box just should be bigger or is there a function I can edit on the original document to enable this?  I read in another post that it can be fixed in Acrobat, but it didn't say how to fix.

    You can make the largest field, the smaller font, or set the font size as auto (in addition to the deselection of the option 'Scroll long text'). When the font size is set to Auto, it will automatically drop in size, with a minimum area of 4, in an attempt to display any entered text.

  • How do you multiline text in a continuous form between the lines without scaling of the text?

    Help. How do you multiline text in a continuous form between the lines without scaling of the text?

    I tried to put each line of the form for amounts of specificity so that it ends at some point and does not change the text size to fit on the line but different key characters have different widths, so you do not get a length of the same line.

    I tried to remove the long text scrolling, but it changed nothing.

    I can create a text box great to fill out and have this scrolling of additional lines, but then I get too much information from people and I would need to clarify the lines behind the answer multi line text, or delete the lines...

    Is there a better solution?

    I usually just remove the lines and set the field "Does not scroll long text" so that all the text is visible. Including the lines is really only useful if the form may be printed and completed by hand, in which case you can use scripts as in this example is: http://acroscript.net/pdf/demos/multiLine_Demo1.pdf

    It works as expected in Acrobat/Reader, but not in Chrome and other PDF viewers who have little or no support for JavaScript. It uses scripts customized to validate on Focus and blur.

  • How long does it take to restore an Iphone clear all its content?

    A few days ago, my brother's iphone were stolen. Yesterday, he received a message from phishing asking password icloud, which unfortunately, he gave. But after eight minutes when he received a notice saying that all its information is clear, he realized it was a scam, and he then change his password. I want to know if that was enough time to erase everything and put up a new account for this phone. Also it is important to say that the stolen phone still appears on the my brother icloud account.

    Thank you

    Unfortunately, the device has been removed. When your brother has given criminals his password to iCloud, they turned off find my iPhone on the device and erase. He can now be sold to anyone, or used by anyone.

    It is good he has changed his password to iCloud to protect his Apple ID.

    The reason that the phone still appears on her iCloud account is only because it is the did not remove, but it's is no longer really attached to her iCloud account.

    He should think about any other personal information that could have been compromised, and make sure that it is taking action to protect (credit cards, notes with other passwords on them, etc.)

    Sorry, what happened to him. Let him know that Apple will never ask him his password, they will never tell him that they have detected a virus on his computer, they will never ask him to buy iTunes cards and redeem them via ApplePay.

    Good luck

    GB

  • I can no longer stick in my text. All I get is the magnifying glass.  (I phone 5, running 9.02)

    When I try to paste it into my text (press and now in the text box), all I get now is a magnifying glass.  I'm under 9.2 on an iphone 5.  I disabled all the features of zoom on my phone. I rebooted my phone several times.  I have reset my network settings.  How can I get rid of him?  Is there a new way to stick to text messaging?

    Looks like you're pressing too long. Try typing instead of pressing and holding the place where you try to stick.

  • Automatic scrolling of text possible in combination with the text form field

    Hello

    We would like to know if it is possible to align the text automatically with a form field that can contain different amounts of characters.

    For example:

    We have a form with a text field for currency at the end of a paragraph of text. The period to mark the end of the sentence should always be printed just behind the currency field. For now, the comma character has a fixed place, just outside the scope of the currency field. It doesn't look good when the currency field contains only 2 characters (due to the white space).

    Is there a solution to this problem?

    Thank you.

    It is only possible if the time text is also part of a text field, preferably the same one. You can use a format or script validation to automatically add this custom text to text from the user, assuming that it is a fixed value or you can know in advance. If it is a value entered by the user, then it becomes almost impossible to do it gently.

  • Printing of text in a text box in a form

    Hello

    I created an application for people to fill out. Part of the form is a text box that requires a description. The problem is that sometimes people will type more than I have size on the text box in the form. You can read all the information when you have the document open in Adobe by scrolling down in the text box, but when you print it, it will only print the size of the text box. Is it possible to get it to print in its entirety?

    Of course, I could enlarge the text box, but at least I have engulf the entire page, I know not that I'll still encounter this problem. To continue the application appealing to watch I prefer to keep the text box, the size it is and keep my fingers crossed that Adobe has a function that will accommodate it.

    Thank you!

    You will need to rearrange your form and subforms so that they can be moved accordingly.

    The parent subform that you put the textField object must be defined as Flowed as well as the first.

    Take a look in this example, see if it helps:

    http://diegosi.files.WordPress.com/2008/12/campos_dinamicos.PDF

  • Restoring a area 51 ALX to its former glory.

    Well later I picked up a little uncommon Area-51 ALX chassis. It had been hacked on way more and I knew before I bought it.

    Ive got most of them back together and have to other desktops Alienware helped in this area.

    the only thing that I can't seen to find out what provision is ordered to hard disk platters in a side? When I had all 6 trays were missing and I took 6 nine trays. I looked through the user's guide and service manual and do not see anything that stands out who said what is the order. does anyone know what order they came from the factory?

    something else that I can't find a MIO to fan control cable. It seems to be elusive. Anyone know where I can get one to?

    Good evening. I don't have the time I can devote to see your start to finish to its former glory. Can I chip - in a pointer or two only. I'm familiar with this computer, but cannot make the connection between the words: MIO to fan control cable & whatever it is you have in mind you are looking to aqwire. On a side note, I moved information valuable swap in this pair of terminals:

    We invite you to browse photos or find one of yours, post / report any cable you need & I may be able to direct you to obtain a. Or better, at least describe it. If not those below, help me help you...

  • This device is not present, is not working properly or is not all its drivers installed. (Code 24)

    Original title: Non-connectable & play drivers

    While looking through my device manager I found 4 of the Non-fiche & play drivers (hidden) with them in exclamation points:

    : Cherimoya

    : innfd_1_10_0_13

    : Iwnfd_1_10_0_13

    : MpKslefd0a58c

    I have no idea what these are, for only they do not work, the about property box: this device is not present, is not working properly or is not all its drivers installed. (Code 24)

    I checked with the driver for each page, and the following line appears for all: "the system has encountered the following error while trying to start the service.

    "The system cannot find the file specified."

    I leave principle that Win 7 needs them to work so any help there would be great, thanks in advance.

    Here's the likely remnants of malware infections that your anti-malware software has partially withdrawn.  See, for example:

    http://www.bleepingcomputer.com/startups/Cherimoya.sys-28755.html

    http://www.herdprotect.com/innfd_1_10_0_13.sys-3e2e078dc9ae42e6223468777ca67d6931a70904.aspx

    I suggest that you uninstall all of these elements, then

    1. Use the Virus Scan free online ESET--> http://www.eset.com/us/online-scanner/
    2. Download, install, update and run the free version of MalwareBytes AntiMalware--> https://www.malwarebytes.org/ you don't need for the Pro version, even if there is a free trial of this one.  During the installation of any software downloaded, be careful when installing and uncheck all the options selected by installing other applications.
  • Labels vs TextFields to display Long text

    I am currently using labels to display all the text in my application, and it can be very slow to load long passages of text.

    The text of loading consists of many operations += (it loads verse by verse of a XML file).  I know that if you use TextFields, you must use .append for better performance.  Am I is slowed down because there is no command adding labels?  Should you opt for using flash.text.TextField rather for better performance?

    I just tested and replaced my two fields of label with TextFields and use .appendText instead of +=.  Improving the performance I received was amazing!  By loading the long text passage (Psalm 119 of the bible for reference), the loading time has fallen more than 10 seconds at about 1-2 seconds.  It consists of about 350 operations += replaced by .appendText.

    So, looks like I found my answer.  Using TextFields and appendText is definitely the way to go.

  • How do I place and autoflow a long text without interruption?

    I converted an image in a table of hexadecimal text

    Screen Shot 2016-06-01 at 8.26.35 PM.png

    It is basically a long text without pause. I tried to place indesign. Then this happened.

    Screen Shot 2016-06-01 at 8.22.11 PM.png

    I was expecting a rectangular neat with no air flow, but instead, I lost a large part of the text and each line has a different length.

    I thought it was the hyphenation. So I turned it off then the text has disappeared. It appeared when I size them down under 4pt

    Screen Shot 2016-06-01 at 8.23.25 PM.png

    I just like that,

    Screen Shot 2016-06-01 at 8.36.19 PM.png

    What should I do?

    Finally, if all else fails, run the GREP depending on the text:

    Search for:. (which is a period there, alone)

    Change to: $0 ~ k

    ... which will add a discretionary line break after each character.

    Ariel

  • Scroll the text in the Web?

    Hello!!

    I have a long text and I need to make it scrollable vertically. Is there a way to achieve that animate in CC?

    Thank you comrades > my deadline is close!

    e f w

    Paris

    The HTML5 canvas does not natively any kind of text boxes, support scrolling or other.

    If the text that you need to scroll is noninteractive, simply use a mask to simulate a scrolling textfield.

    If the text needs an interactive scroll bar, the easiest way is to, as constantly Flanimate, DOMElement allows to superimpose the real HTML text on the canvas. I already posted the code to do this kind of thing here:

    How can I add a video

    You will have to pass in the appropriate CSS styles to get the desired scrolling behavior.

  • How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    Hi all

    How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    There is also a checkbox on the dialog box 'Sign' to lock document after signing.

  • How can I get a drop-down text box as a form of my PDF document that I send for signature using EchoSign?

    When I create a document using a template from my library, I find that all of the text I included in the text box is scrollable and visible, but after the signing, users are not able to scroll the text and cannot see what is visible in the text box itself.

    Hello Erin,.

    I think that you have added the text field and you filers or adding default values (more than the size of the text field). You must make sure that the length of the text field is appropriate in order to fit all the text inside. If you enter more text that the size of the field, then the rest of the text would be cut.

    Kind regards

    -Usman

Maybe you are looking for

  • Apple TV will work without an internet signal? (newbie alert)

    I don't know anything about the Apple TV and I am trying to understand what it is.  Is an internet signal required for it to work?  Are there things that apple TV can do without an internet signal?

  • iBook lost everything

    I'm a pilot and keep all my manuals etc. in Ibooks, I bought recently and iPad 4 mini... I saw all my books and books for a spit second, then they all disappeared... I really need to get access to all these documents. Any suggestions?

  • Can I transfer files and settings from my old hard drive after replacing with a new one?

    the old hard drive developed a kind of problem and was still running out of space. I replaced and recharged my CD XP. the old hard drive is still readable via USB adapter system and I want to what I can from him toward the new restore disc. the old d

  • Uninstall hardware DEP

    DEP closes my internet when I select attachments to email

  • I can't find listed in all telephone services.

    Control Panel =>-Online Services-Online Telephony Administration Tools. You can normally access the phone like that, but I could not find phone in my friend's computer. Is it possible to install or download telephone without having to reinstall Windo