Disable Text selection and resize of sign annotation

Product: pdftron/webviewer

Product Version:10.4.0

Please give a brief summary of your issue:
how to disable Text selection on default behavior
and resize of sign annotation of signature field

1 Like

Hello huzeifajahangir,

You can set default tool by following the guide here: Interacting-with-tools | Apryse Documentation
For example:

instance.UI.setToolMode('AnnotationCreateSignature');

As for disabling resize of the Signature Annotation, you can try the following code snippet:

annotationManager.addEventListener('annotationChanged', (annotations, action) => {
        if (action === 'add') {;
          annotations.forEach(annotation => {
            if(annotation.Subject === 'Signature') {
              annotation.NoResize = true;
              annotationManager.updateAnnotation(annotation);
              annotationManager.redrawAnnotation(annotation);
            }
          });
        }
      });
2 Likes