我使用PDFTron创建内部网站。当我单击PDFTron中的自由文本工具时,它工作正常。我需要的是在文本工具的focusout()上,我需要选择平移工具。
有没有人能指导我该怎么做呢?
发布于 2020-01-01 06:28:35
你能澄清一下你所说的FreeText工具的焦点是什么吗?你的意思是在你创建了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);
});https://stackoverflow.com/questions/59519102
复制相似问题