createAnnotationFromInstantJson

Creates an annotation from the Instant JSON annotation format. The JSON must contain the type, the page number and any other required properties for that type. The created annotation will be automatically added to the document, and any registered will be notified of the creation.

Return

Annotation created from the provided Instant JSON. If creation of the annotation from JSON failed, this method throws an exception.

Parameters

annotationJson

Instant JSON representation of the annotation to be created.

See also