Hi there,
On WebViewer, you can use 2 types of annotations:
- instance.Core.PDFNet.Annot
- instance.Core.Annotations.Annotation
PDFNet.Annot is part of the full API that is generally used to work with server side operations.
Annotations.Annotation is the class within the WebViewer’s client-side JavaScript library, which is used to create and manipulate annotations in the browser.
An example of converting a WebViewer object to PDFNet object can be seen here:
You will need to extract the annotation properties and instantiate a new instance of the PDFNet’s annot object.
You can see the required properties for SquareAnnot here:
https://docs.apryse.com/api/web/Core.PDFNet.SquareAnnot.html#main
And the WebViewer’s rectangle annotation:
https://docs.apryse.com/api/web/Core.Annotations.RectangleAnnotation.html#main
Best regards,
Kevin Kim