TheDocumentation Index
Fetch the complete documentation index at: https://webviewer-docs.mupdf.com/llms.txt
Use this file to discover all available pages before exploring further.
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
The configuration object.
Returns
A Promise.
get
Parameters
Optional configuration. If omitted, returns all annotations for all pages.
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
The configuration object.
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 configuration object.
The
Annotation[] array contains annotation objects, also see the Working with Annotations guide.undo
Returns
A Promise that resolves to a success status.
redo
Returns
A Promise that resolves to a success status.
Annotation Object
TheAnnotation object type: