PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
const eraserTool = documentViewer.getTool(Tools.ToolNames.ERASER);
documentViewer.setToolMode(eraserTool);
// You can also set the eraser to either full deletion mode or partial deletion mode when erasing ink.
eraserTool.setEraseMode('whole'); // whole | partial
// By default, the eraser erases every annotation it touches. To erase only ink, set the erase target to 'ink'.
eraserTool.setEraseTarget('ink'); // all | ink