OptionalcontextualCustomize or hide the contextual (mode-specific) tools - shown when entering annotations, content editor, form creator, etc. Also displays annotation properties when an annotation is selected. Return null from render to hide it entirely.
OptionalmainCustomize or hide the main (always-visible) tools - zoom, page navigation, mode switching, etc. Return null from render to hide it entirely.
Tools slot configuration - the primary and contextual tool surfaces.
main- always-visible tools: zoom, page navigation, mode switching, layout, print, export, etc.contextual- mode-specific tools that appear when entering an annotation mode, content editor, form creator, measurement, document crop, or ink eraser. Shows annotation properties (color, opacity, border width) when an annotation is selected.Note: The names
mainandcontextualare intentionally presentation-agnostic - they describe when the tools are visible, not how they are laid out. This allows the SDK to change the visual presentation (e.g., from a horizontal bar to a sidebar panel) without breaking the API.Example
Replace the main tools with a minimal zoom-only bar:
Example
Hide the contextual tools entirely:
See
UI.Configuration