Hi Team
I am trying to set watermark when converting a document to image.
Watermark is applied successfully on the output image without setColor option. But throws the following exception when setting color:
com.groupdocs.conversion.internal.c.a.i.internal.Exceptions.e: Specified argument was out of the range of valid values.
Parameter name: name
at com.groupdocs.conversion.internal.c.a.i.f.a(Unknown Source) ~[groupdocs-conversion-17.3.0.jar:1.0_01]
at com.groupdocs.conversion.internal.c.a.i.f.V(Unknown Source) ~[groupdocs-conversion-17.3.0.jar:1.0_01]
Code to set color:
WatermarkOptions watermarkOptions = new WatermarkOptions(“Watermark text”);
Color watermarkColor = new Color(100, 175, 75);
watermarkOptions.setColor(watermarkColor);
Gradle Version:
compile(‘com.groupdocs:groupdocs-conversion:17.3.0’)
Thank you
Poornima