After creating an editable PDF using Adobe Indesign, I encountered an issue with font color when editing the text in Adobe Acrobat. The default font color was black, but I wanted it to be white. Despite my limited knowledge of Javascript, I managed to find a code snippet online to adjust the font size and family. However, I struggled to find a solution to change the font color to white. Any assistance in resolving this would be greatly appreciated!
The code snippet I currently have is as follows:
for (var i = 0; i < numFields; i++) {
var fName = getNthFieldName(i);
var f = getField(fName);
if (f.type === "text") {
f.textSize = 75;
f.textFont = "DINLIGHT";
f.textcolor = ["CMYK","1.0 1.0 1.0"];
;
// Other properties go here
}
}
Despite trying different approaches, I have been unable to change the font color to white while maintaining the font size and family. The text remains black, and nothing I have attempted has been successful.
f.textcolor = "white";
f.textcolor = ["CMYK","0, 0, 0, 0"];
Any guidance or suggestions on how to achieve white font color in the editable PDF would be greatly appreciated.