Try to highlight the rectangle of a text field

I'm trying to point out the rectangle of a text field with an Annotation of the line, but I'm a bit confused.

The first doubt is on the 'Square' vs 'Rectangle' annotations What is the difference between them? Adobe has those changed recently?

I tried several variations of the following code snippet:

var x 1 = textField.rect [0];
var y1 =
textField.rect [1];
var x 2 =
textField.rect [2];
var y2 =
textField.rect [3];

var this.addAnnot({) = underline
page: 0.
type: 'Line ',.
Rect: [x 1, y1, x 2, y1],.
strokeColor: color.red,.
strokeWidth: 160
});

What I get is a line of identity (e.g., 45 degrees) in the lower left corner.

-Ramon

The square rect sets top-left-x, top-left-y, down, left - bottom-left-y and x.

For a line, it is left-x, left-y, x-right, right-y.

So if you want the line to be under place, use the background values of the place to place the line.

Tags: Acrobat

Similar Questions

  • HELP - lost the button "calculate" in the "text field properties"! I try to summarize the total for separate text fields in a summary box.

    Help, please!  I try to summarize the total for separate text fields in a summary box, but have lost the tab 'calculate' in the 'text field properties area.  Any help would be greatly appreciated!

    When in forms editing mode (Tools > prepare form), select: more > return to the Acrobat form

    In the future, check the box 'this document requires signatures' when you choose at the beginning: Tools > form prepare

    unless you plan to use the form with eSign Document Adobe cloud service.

  • Try to retrieve the contents of a text field and use it in a conditional statement

    Hello world

    I have a form with a text field and a button. The text field is called "orderNo" and the button is called "genOrder".

    Initially, the text field is empty, and clicking on the button fills the text with an appropriate order number field.

    I have need to check the text field for the data (content) before you write the order number, in this way, if an order number is already present in the text field, it will be over written.

    My intention is to use an if / else structure to perform the tests, but I do not know how to retrieve the content of the text field (if the content is present!).

    If anyone can suggest how I can go about extracting the contents of a text field and then use it in an if / else statement it will be greatly appreciated.

    Kind regards

    DAVO

    currentOrderNo = this.getField("orderNo").value;

    If ("currentOrderNo == null | currentOrderNo ==" ") {}

    the field is empty, fill it with a new value

    } else {}

    the field is not empty, something else

    }

  • In Windows Vista, when I type text in an e-mail message and then try to highlight, the text disappears.

    I HAVE WINDOWS VISTA. WHEN I TYPE THE TEXT ON THE E-MAILS AND TRY AGAIN AND HIGHLIGHT THE TEXT DISAPPEARS FROM IT. I'VE BEEN ADVISED THAT PERHAPS THE COLOR IS WHITE (I THINK THAT OUR GIRL CAN ACCIDENTALLY CHANGED SOMETHING SINCE IT IS A NEW PROBLEM)
    I DON'T KNOW HOW TO CHANGE THE COLOR. PLEASE CAN YOU HELP. Thank you.

    original title: TEXT DISAPPEARS WHEN I TRY TO highlight THE TEXT

    You can open Notepad and type something.  Press the Insert key, and then try to go back and change what you type and you will see the difference between insert and Overtype.

    I can't help with Firefox, but in IE, you can change the colours via Tools | Internet Options | The colors.  I think Firefox has a similar option, but you need to ask in a forum of Firefox to see the option.  As it happens in the browser, then it is clearly a browser problem and not a problem in Windows mail.

    Steve

  • The legend of a text field border

    Does anyone know how to get the edge of the legend of a text field and the value section is visible to a user of the form?  It's a bit confusing when someone enters a field, and there is no line between the legend, they can't change it, and the value, they need editing.

    Choose different skins for the field will make very clear. If you choose to have no appearance there is no deliniation between the two. You can set up to change the background color of the zone to enter and deliver it to the output. This technique will highlight the field that has the focus, and there is no doubt as to where the field stops and starts.

  • Is it possible for someone to insert a logo when you fill out a form to fill out? I'm looking for all the options under the button 'add a text field.

    I have created a form to fill out that is a contract, but I need a way for the person who is to fill the form to insert their logo.  Is it possible for someone to insert a logo when you fill out the form to fill out? I'm looking for all the options under the button 'add a text field.

    It is not possible within a text field, either. If they have Acrobat, they can use the built-in under Tools - editing content Add Image tool.

    If they drive XI or higher, they can use a button form field you will need to set up for them, but the image must be in PDF format.

  • Problems with the filling of a text field with 2 other fields data


    I have 3 domains Tools_1a_pri, Tools_1a_pri_other, Tools_1a_pri_txt.

    Tools_1a_pri is a drop-down list box with a predefined list. One of the options is the 'other '.  If 'Other' is selected, the text Tools_1a_pri_other field becomes visible for users to enter the name of the other tool.

    The Tools_1a_pri_txt is a text field with a calculation that shows a text indicating that no tool has been selected or the Tools_1a_pri & or Tools_1a_pri_other.

    When I select one of the predefined tools, everything works.  When I choose the other, it seems that nothing has changed.  Must I click another field before.  It's confusing for the user.

    Tools_1a_pri validate code
    this.getField("Tools_1a_pri_Other").display = event.value is "Other"? Display.visible: display.hidden;

    Computer Tools_1a_pri_txt code
    If nothing is selected, follow these steps
    If (getField("Tools_1a_pri").value.length < 2) {}
    event.target.textColor = color.red
    Event.Value = "no identified main tool";
    } else if (getField("Tools_1a_pri").value! = 'Other') {}
    If not do that if the other is selected
    event.target.textColor = color.black
    Event.Value = getField("Tools_1a_pri").value;
    } else if (getField("Tools_1a_pri").value = 'Other') {}
    If not do so if the other is not selected
    event.target.textColor = color.black
    GetField("Tools_1a_pri").value = Event.Value + "-" + getField("Tools_1a_pri_Other").value;
    }

    You have made the classic mistake of using the assignment operator in a statement instead of the comparison operator. Change this line:
    } else if (getField("Tools_1a_pri").value = 'Other') {}

    To do this:

    } Else if (getField("Tools_1a_pri").value == 'Other') {}

  • Check the boxes based on the value in a text field

    Hello.

    I'm building a pdf form in Acrobat Professional X. I want to add JavaScript to two checkboxs to achieve the following objectives:

    If the value of a text field (TLigne) is equal to 61, 64, 66 or 67, the first box (PlanACheck) has the value of the object of an audit.  If the value of a text field (TLigne) is equal to 60, 62 or 63, the second box (PlanBCheck) has the value of the object of an audit.

    I have no other than copy and paste Javascript experience, so I'm not sure I use the right language to research. If anyone can provide guidance, I would be very happy.

    Thank you very much!

    Usually this kind of thing will run the custom calculation of the target field script, but the boxes is not a calculation script, so we'll use the text for field Validation script do, with this code:

    this.getField("PlanACheck").checkThisBox (0, (event.value == "61" | event.value == "64" | event.value == '66' | event.value == "67"));

    this.getField("PlanBCheck").checkThisBox (0, (event.value == "60" | event.value == "62" | event.value == "63"));

  • Referring to the value of a text field, not the legend

    How to refer to the value in a text field to make the data entered by the user "BOLD" / no fat without the caption of a field text in bold or not bold?

    Hello

    Two lines should do. The first turn the caption and the "BOLD" value, then the second changes the legend of back to normal:

    TextField1.font.weight = "bold";
    TextField1.caption.font.weight = "normal";
    

    Hope that helps,

    Niall

    Ensure the dynamics

  • change the visulas of a text field

    Hello!

    How do heck you change the attributes of a text field that is in a form. IM particularly interested in the color and size of the box itself. I guess that this is done in css, if so that the CSS properties do change?

    Thank you very much and MERRY CHRISTMAS!

    Does that help?

    http://articles.SitePoint.com/print/style-Web-Forms-CSS

    Martin

  • PS CS5: Raise errors when I try to change the font of a text layer

    This is new behavior. If I create a text layer, and then highlight the text and change the fonts to ariel, I get an error indicating that a program error has occurred.

    I did all of the normal photoshop recover things including new preferences and resettlement. No joy. Any ideas?

    What operating system?

    The problems of fonts in Adobe Photoshop CC, 2015, 2014, CS6, CS5

  • I get an error message when I try to use the rectangle tool.

    This just started today, I use a HP laptop with windows 8, I just downloaded Photoshop in January. Whenever I use the rectangle tool I get this message: "Could not use the rectangle tool because of a program error." How can I figure out and fix the error.

    Let's try a Reset of Photoshop preferences:

    Hold down the CTRL - Shift - Alt from the cold Photoshop start.  If you get the keys to the low enough - quickly and you have to be VERY fast - it prompts you to confirm the removal of your established preferences, which will lead to them all being the default value.

  • Query of the police in dynamic text fields (livecycle ES3)

    Hi all, is it possible to configure a dynamic form (livecycle ES3) to allow the user to enter the normal two (by default) AND a bold font in a text field? In addition, if different color font were to insist on a point - is it possible? Enjoy cany help in this matter. Thank you

    Yes to bold, but I don't think (unless someone can correct me) on the highlight. For the bold, you first have to change the Format of field in the window object library. Once that is then activated in the two player (if you extend the right permissions) and in Acrobat, you can select the text that you want, right-click on it, go to 'Text Style' and then change the font of the selected text only for "BOLD". I put some screenshots below of what it will look like. Derivative is a different beast in Adobe. Specific text highlighting is not an option that allows Adobe and Livecycle, I don't know if there is a way to let a user highlight specific text in a field. If you try to use the method to highlight in Acrobat or Reader, it will prompt you to created a printed version. You can select the entire field itself with a few JS Livecycle, but the text are not specific.

  • How do fill you a text field based on the entries in other text fields?

    I would like to be able to have a text field that fills as 'Full' or 'Incomplete' based on the question if all required fields have been filled or not.

    For example, if the "First Name", "Last Name" and "City" text fields are not filled, the text of "the State of completion" field displays 'Incomplete' and once they are filled, the text of "the State of completion" field will turn into "Complete".

    How can I do this using javascript? I searched the web for a tutorial, but most of the results seems to be focused on the menu drop-down.

    Please point me in the right direction!

    Try the script below. I put this on the calculate for Field1 event

    If (FirstName.rawValue == null |) LastName.rawValue == null | City.rawValue == null) {}

    Field1.RawValue = "incomplete."

    }

    on the other

    Field1.RawValue = "complete."

  • Click and drag in the Favorites or in text fields does not

    Click and drag does not work with favorites anywhere, or any text fields. He used to work a lot in v11, but not v12

    I tried to revert to my version of Firefox v11 backup but it keeps automatically updated to v12 despite disabling auto update in the preferences and even when it is offline - frustrating.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

Maybe you are looking for