Guides
Initialize Editing Mode
Before editing, you should initialize editing mode. ComPDFKit provides methods to initialize editing mode.
The following code shows you how to initialize the editing mode:
javascript
docViewer.getContentEditManager().startContentEditMode();
Add Text Tool
To add new text, you can switch to a tool called addText
. For example:
javascript
instance.UI.setActiveTool('addText');
Add Image Tool
You can switch to the addImage
tool.
javascript
instance.UI.setActiveTool('addImage');