addAnnotation(String annotationProperties)

Adds one or more annotations with properties.

Applicable from 5.0.0

The annotationProperties parameter must specify all the properties that are required by the annotation type.

Use a delimited string for the annotationProperties parameter value. You can call the getDelimiter() method to retrieve the delimiter to be used.

Sample syntax

ViewONE.addAnnotation("[HIGHLIGHT]<P>PAGE=1<P>X=300<P>Y=350<P>WIDTH=400<P>HEIGHT=500<P>LABEL=myHighlight1<P>");
ViewONE.addAnnotation("[RECTANGLE]<P>PAGE=1<P>X=300<P>Y=350<P>WIDTH=400<P>HEIGHT=500<P>LABEL=Rectangle1<P>FILLCOLOR=255,0,255<P>TRANSPARENT=0<P>LINEWIDTH=0<P>[LINE]<P>X1=0<P>Y1=0<P>X2=100<P>Y2=100<P>LINEWIDTH=1<P>COLOR=0,0,0<P>PAGE=1<P>LABEL=LINE1<P>");

Example

Example for Standalone watermark:
ViewONE.addAnnotation('[TEXT]<P>X = 482<P>Y = 390<P>WIDTH = 579<P>HEIGHT = 269<P>FONTTYPE = Arial<P>FONTHEIGHT = 122.4<P>FONTSIZEORIGINAL = 24<P>SEMITRANSPARENT = 1<P>BORDER = 0<P>TEXT = test<P>WATERMARK = 1<P>PAGE = 1<P>COLOR = 192, 192, 192<P>TRANSPARENT = 1<P>LABEL = Text1<P>PAGESIZE = 1734, 2156<P>EDIT = 1');