I want to save the area annotation with fill-color and transparent as in below fig.
Also adding this line in tool.setStyles will make entire annotation transparent but I just want only filled color transparent
Opacity: 0.2
I have used this -
const tool = this.viewerInstance.docViewer.getTool(‘AnnotationCreateAreaMeasurement’);
tool.setAllowCreationOverAnnotation(true);
tool.setStyles(() => ({
FillColor: new this.viewerInstance.Annotations.Color(92, 142, 184, 0.2)
}));
Using this method, I am getting the xfdf of the annotation and saving it in database. But on page refresh, when I reload xfdf on webviewer, the transparency is gone. Area’s filled color becomes solid colored without transparency.
exportAnnotations() and importAnnotations()
So I want to save that fillColor transparency. How to do that ?