Copy link to clipboard
Copied
I want a form that has a 5" square of a single color. One of the form fields would be an input for the amount of 'greyscale' used for that color. If the color is cyan and there is a form field that I would input the percentage of 'greyscale' for that color. It would still be cyan but the 'greyscale' would be controled by the value in the field.
Copy link to clipboard
Copied
The backgroud color of an annotation or form field can be controlled with a script.
So for example, this validation script for a text form field controls the grayscale of a form field named "ColorPatch"
Gray scale values are between 0 and 1
if(!isNaN(event.value) && (event.value >= 0) && (event.value <=1))
{
this.getField("ColorPatch").fillColor = ["G",event.value];
}
This technique can be extended to include shading for other color values.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
To do this sort of thing you'll need to learn a bit about PDF form fields and scripting.
You can get started here:
https://www.pdfscripting.com/public/PDF-Form-Scripting.cfm
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more