Some test text!

Loading...
Guides
Set tool mode

Change & set default tool mode

When setting up the ToolManager, the default Tool is the Pan Tool. To change the tool, use ToolManager.setTool(ToolManager.Tool) API.

For example, to switch to the Text Highlighting tool, do the following:

mToolManager.setTool(mToolManager.createTool(ToolMode.TEXT_HIGHLIGHT, mToolManager.getTool()));

To continuously using the same tool, do:

Tool tool = mToolManager.createTool(ToolMode.TEXT_HIGHLIGHT, mToolManager.getTool())
((Tool) tool).setForceSameNextToolMode(true)
mToolManager.setTool(tool);

Get the answers you need: Support

Upcoming Webinar: PDFTron SDK Tech Review | Nov 29, 2022 at 2 pm ET

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use