Removing an Annotation Tool from Our Viewer Toolbar

PSPDFKit for MAUI 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);