Results 1 to 3 of 3
  1. #1
    Pyramide is offline Member
    Join Date
    Jul 2012
    Rep Power

    Default Vertical-align form field in adobe acrobat


    First of all:i am creating a pdf form with adobe acrobat pro. i would like to customize the text in my form fields under the option: "customized formating script" with java.

    In another forum I found out how to get text vertically in the middle:

    <style type="text/css">
    #myoutercontainer { position:relative }
    #myinnercontainer { position:absolute; top:50%; height:10em; margin-top:-5em }

    ////this is one example of code that is used in the acrobat reader:
    var f = this.getField("myListBox");

    f.multipleSelection = true;

    how do I translate the code for "vertical-align: middle" in Java?

    Thanks alot in advance,
    Last edited by Pyramide; 07-23-2012 at 07:24 PM. Reason: form, vertical-align, acrobat

  2. #2
    kammce's Avatar
    kammce is offline Senior Member
    Join Date
    Dec 2010
    Rep Power

    Default Re: Vertical-align form field in adobe acrobat

    This might be my lack of knowledge on making programs that can be implemented in PDF Forms, but, are you talking about Java the programming language or JavaScript, the Internet Scripting language? I ask this, because the examples you have are css and javascript, and I have no idea how to get the two to mix in a PDF... using Java. If you trying to use the Java Programming language for this problem, ignore this whole post.

    BUT! If you are looking for JavaScript, read on.
    You do something like this:"middle";
    If it is JavaScript, you use W3Schools Online Web Tutorials, as a reference. Most CSS styles can be dynamically implemented in Javascript. Look for JavaScript syntax:

    Lastly, this is a Java programming forum. Not a JavaScript forum.
    My API:
    Java Code:
    cat > a.out || cat > main.class

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Vertical-align form field in adobe acrobat

    Nothing to do with Java. Closing.


    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Adding auto complete field in form
    By mailvkjain in forum New To Java
    Replies: 8
    Last Post: 01-19-2012, 07:14 AM
  2. Multi field search query form
    By ismet in forum New To Java
    Replies: 5
    Last Post: 03-09-2011, 08:34 AM
  3. Replies: 0
    Last Post: 01-29-2011, 09:13 PM
  4. Get Field value from form
    By johnven in forum Java Servlet
    Replies: 0
    Last Post: 03-10-2010, 07:34 AM
  5. import com.adobe.acrobat
    By minhtttran in forum Eclipse
    Replies: 3
    Last Post: 01-13-2009, 03:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts