Javascript PDFTron focusout()中的Freetext工具
我使用PDFTron作为内部网站。 当我在PDFTron中单击自由文本工具时,它工作正常。我需要的是,在文本工具的focusout()上,我需要选择平移工具Javascript PDFTron focusout()中的Freetext工具,javascript,pdftron,Javascript,Pdftron,我使用PDFTron作为内部网站。 当我在PDFTron中单击自由文本工具时,它工作正常。我需要的是,在文本工具的focusout()上,我需要选择平移工具 有人能告诉我怎么做吗?你能澄清一下你所说的自由文本工具外的焦点是什么意思吗?您的意思是,在创建FreeText注释后,它将切换到平移工具吗 以下是创建FreeText注释后如何切换到该注释: const { docViewer } = instance; const freeTextTool = docViewer.getTool('An
有人能告诉我怎么做吗?你能澄清一下你所说的自由文本工具外的焦点是什么意思吗?您的意思是,在创建FreeText注释后,它将切换到平移工具吗 以下是创建FreeText注释后如何切换到该注释:
const { docViewer } = instance;
const freeTextTool = docViewer.getTool('AnnotationCreateFreeText');
// note that in WebViewer 5.2 you need to add the "e" parameter like:
// (e, annotation) => {
freeTextTool.on('annotationAdded', (annotation) => {
setTimeout(() => {
instance.setToolMode('Pan');
}, 0);
});