Eraser tool not erasing annotations

Product: Native Android / Java / Kotlin

Product Version: 9.2.3

Please give a brief summary of your issue:
(Eraser tool not erasing the annotations)

Please describe your issue and provide steps to reproduce it:
(Load the PdfViewCtrlTabHostFragment2 inside the activity. Then add the annotation in file then use the eraser tool to erase it. Eraser only erasing the pen tool annotation apart from that nothing is erasing )

Please provide a link to a minimal sample where the issue is reproducible:

Hi there,

If you would like to erase annotations you need to change the EraserType.
Please see sample Java code below showing how to change the eraser type to hybrid (erase ink and annotation).

ToolManager tm = mPdfViewCtrlTabHostFragment.getCurrentPdfViewCtrlFragment().getToolManager();
tm.setEraserType(Eraser.EraserType.HYBRID_ERASER); 

Best,
Eamon

@emallon Thank you for the quick reply. This solutions work for us.

1 Like