Disable CreateSignHereText Element

In webviewer i want document to be read only. so i set this.annotationManager.setReadOnly(true);
but the signfields are still active on document if we click on that sign field, signature dialog is opening, how to disable that

any approach ??/

Hi,

Please try out the following code:
Webviewer(
{
},
document.getElementById(‘viewer’)
).then(function(instance) {
instance.annotManager.setReadOnly(true);
instance.annotManager
.getAnnotationsList()
.filter(annot => annot instanceof instance.Annotations.SignatureWidgetAnnotation)
.forEach(annot => {
annot.fieldFlags.set(‘ReadOnly’, true);
});
});

Please let me know if it doesn’t work.

Thanks,
Anthony Chen
Software Developer
PDFTron Systems Inc.