Product: @pdftron/webviewer
Product Version:^11.7.1
After loading a document if I select shapes and then Rectangle or any other tools, if new document loaded how to reset that selection on documentload
Product: @pdftron/webviewer
Product Version:^11.7.1
After loading a document if I select shapes and then Rectangle or any other tools, if new document loaded how to reset that selection on documentload
Hi there,
If you want a set tool to be loaded every time whenever a document is loaded, you can use the documentLoaded event and set any tool, such as the Edit tool:
documentViewer.addEventListener('documentLoaded', () => {
documentViewer.setToolMode(documentViewer.getTool('AnnotationEdit'));
});
Best regards,
Kevin