I am working with several documents that are imported from MS Word (sometimes texts are colored) and I need to layout them in 1C Black so all other colors must be replaced with "Black".
I saw a thread [here] for removing specific colors and replacing them with a specific color but in my case, sometimes the colors are randomly named so I have to generalize it.
Here's the process I have in mind:
- If the script detects that a color name is not equal to "[Paper]" && "[Black]" && "[Registration]",
it will automatically remove that color and replace it with Black.
I'm trying to write the code myself but it just won't work. Any help will be highly appreciated 🙂
Can you post the code that won't work?
A million thanks! I downloaded the script and it works totally how I need it to be.