Attached you will find an ASP.NET web application showing how to accomplish basic tasks with the WebAnnotationViewer.
For this example we used the principle that we would create a layer in the WebAnnotationviewer for each page in the multipage tiff.
Paging through a multipage Tiff
TextData, RubberStampData, PointBaseData, LineData, InkData, HotSpotData, EllipseData. Documentation
Save an Annotation as XML
In the Default.aspx.cs codebehind the SaveAnnotations() method simply calls WebAnnotationViewer.Annotations.Save(). This method takes 2 parameters. The filename to save the annotations under, and an Atalasoft.Annotate.AnnotationDataFormat() object. Using the Atalasoft.Annotate.AnnotationDataFormat() object will create the file in XML(XMP) format.
Load Annotations from File (XML)
The LoadAnnotations() method in the codebehind first clears the existing layers. It then uses the WebAnnotationViewer.Load() method to open the XML file containing the annotations. There is also a call to CreateLayers() after the load. This is called because Load() will only create a layer for each annotation in the file and we want to create a layer for each page in the multipage tiff. Note the (for) loop in CreateLayers(), it starts at the Layers.Count value.
A much more inclusive demo can be found in our Demo Gallery:
HTML Document Viewer Demo