How can I change the font color hue in a script?


I currently have a script in a pdf file to be completed.

event.target.textColor = event.value < 97? Color.Red: green color;

This option enables the numbers in the red field if they are less than 97 and green if they are longer. The line works, but I would change the shade of green for a hexadecimal color. I don't know how to do it. When I put in the number, it comes back as a syntax error or does not at all. Can someone help me?

Instead of color.red or color.green, you would specify something an array of values such as:

["RGB", 100/255, 200/255, 50/255]

where 100, 200 and 50 are examples of decimal equivalents of the hexagonal, red, green and blue values, respectively. The Acrobat JavaScript reference contains more information on color charts.

Tags: Acrobat

Similar Questions

Maybe you are looking for

  • IS THE NAME OF THE PROFILE INCLUDES THE NUMBER TOO?

    PROFILE_NAME IS FOLLOWED BY A NUMBER. COPY THE NAME AND NUMBER TO RESTORE MY PROFILE? WHEN I DID IT BEFORE THERE WAS NO NUMBER BEHIND THE NAME.

  • How to delete my Gmail account name for forefox browser?

    When I try to connect my Gmail account, on the tab 'username' gmail accounts are indicated on the list also. I wanted to delete them all and doesn't want to not them to bring up the account before someone types in. In other words, I wanted to delete

  • Cannot save a new file numbers

    Using numbers from Apple on an iMac When I open numbers and make a new file, after working on this subject that I just saved it... and get the error the file 'Untitled' could not be opened. Even when I rename the file and change the destination I can

  • 15 - f233wm: bios password

    I think my kid put a bios password, but he does not remember to do.  I get a black screen with a blue box asking me password administrator or power on password.  When I answer incorrectly 3 times, I get a message indicating the deactivation of the sy

  • [Bug] Problem with fonts in iTunes Store 12.3.1.23 caused by Helvetica

    More than 5 years the users report problems of police in the iTunes store. End of 2015, version 12.3.1.23, I just see that this bug is not resolved: iTunes store shows correctly, but when I activate the police "Helvetica Neue Condensed Bold - OpenTyp