annotation object is an instance accessible from the main MuPDFWebViewer instance as follows:
This assumes you have returned your instance name as
webViewer from the initMuPDFWebViewer() promise!annotation
Theannotation object has the following methods:
remove
Parameters
Returns
Exampleget
Parameters
Returns
A Promise that resolves to an object containing an
Annotation[] array.The
Annotation[] array contains annotation objects, also see the Working with Annotations guide.add
Parameters
Returns
A Promise that resolves to an object containing an
Annotation[] array.The
Annotation[] array contains annotation objects, also see the Working with Annotations guide.set
Parameters
The
Annotation[] array contains annotation objects, also see the Working with Annotations guide.undo
Returns
Exampleredo
Returns
ExampleAnnotation Object
TheAnnotation object type: