Some test text!

menu
Statuseskeyboard_arrow_down

Annotation Statuses

The annotation statuses/states provide a built-in way to create review and approval workflows. The default states are: Accepted, Rejected, Cancelled, Completed, and None. Those are part of PDF Specification and the reason they were chosen as default. However, it is possible to change them and set yours.

Annotation Status

linkProgrammatically update annotation state

We can set the annotation state programmatically by calling updateAnnotationState.

WebViewer(...)
  .then(instance => {
    const { docViewer, annotManager, Annotations } = instance;

    docViewer.on('annotationsLoaded', () => {
      const annotList = annotManager.getAnnotationsList();
      const annot = annotList[0];
      annotManager.updateAnnotationState(annot, 'Completed');
    });
  });

linkCustomizing states

If the current set of annotation states does not work for you, you can update them by modifying annotation states. You just need to edit the highlighted portion.

Annotation Status

After you are satisfied with the changes, you can follow the guide on how to update your version of WebViewer UI.

linkRelevant APIs

updateAnnotationState
To update annotation state.

getState
To get annotation state.

getStateModel
To get annotation state model.

setState
To set annotation state.

setStateModel
To set annotation stateModel.

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

Join our live demo to learn about use cases & capabilities for WebViewer

Learn more
close