设置工具
You can set annotation tool in the Web PDF Viewer. The following code shows you how to set annotation tools:
javascript
// You can get all tools and set the tool you want.
const tools = docViewer.getToolMap();
// For example, set the freetext tool as the current tool.
docViewer.setTool('freetext');