Removing an annotation tool from our viewer toolbar

Nutrient MAUI SDK comes with a customizable annotation toolbar that, by default, includes a number of predefined items. You can remove any toolbar item you want using our API.

The example below removes the blend mode item from the ink annotation toolbar when loading the PDF:

var blendModeItem = PSPDFKitController.AnnotationToolbar.ToolbarItems[AnnotationType.Ink]
.FirstOrDefault(item => item is BlendModeAnnotationToolbarItem);
if (blendModeItem == null)
{
return;
}

PSPDFKitController.AnnotationToolbar.ToolbarItems[AnnotationType.Ink].Remove(blendModeItem);