mmazal's example is incorrect. The RGB parameters of the color object should have values between 0 and 1, not 0 and 255 like in most other places, so you will have to convert the RGB values you're used to to this new scale.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com
I am a graphic designer so you need to speak in laymen's terms with me. I don't understand all the underlying code stuff. I have created a print-ready PDF document with form fields. The printer that I work with wanted a way for the client to fill in their data and see on screen instantly how it would look and this would serve as their proof, it would then go straight to the plant for printing. I have the form fields set to the exact point size and font needed. The document has 4 spot colors but I cannot assign any of the spot colors to the data in the form. I can only access the general web color pallet and not my built-in spot color pallet (which shows up under Ink Manager). Everything works perfectly except this color issue. The text in the form needs to be a particular spot color so that the colors separate properly for the press.
I don't think you can assign spot colors to the text of a form field in Acrobat. You can use the pallete, or a script, to assign an RGB or CMYK color. If you want spot colors you need to use them in the appliction where you created the file (like InDesign or FrameMaker) before converting the file to PDF.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com
You still can't use spot colors, but you can (and could) define the color you want to use using the Color object.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com
if you can get the RGB value of your spot color then you can try
var r = 0;
var g = 23;
var b = 111;
getField("Text1").textColor = ["RGB",r,g,b];