AnnotationToolbarSettings
23 Sep 20251 minute to read
The AnnotationToolbarSettings module is used to provide the annotation toolbar settings of the PDF viewer.
<div id="pdfViewer" style="height: 100%;width: 100%;"></div> let viewer: PdfViewer = new PdfViewer();
// Change the annotation tool bar settings.
viewer.toolbarSettings = {
showTooltip: false,
annotationToolbarItems: [
"HighlightTool",
"UnderlineTool",
"StrikethroughTool",
"SquigglyTool",
"ColorEditTool",
"OpacityEditTool",
"AnnotationDeleteTool",
"StampAnnotationTool",
"HandWrittenSignatureTool",
"InkAnnotationTool",
"ShapeTool",
"CalibrateTool",
"StrokeColorEditTool",
"ThicknessEditTool",
"FreeTextAnnotationTool",
"FontFamilyAnnotationTool",
"FontSizeAnnotationTool",
"FontStylesAnnotationTool",
"FontAlignAnnotationTool",
"FontColorAnnotationTool",
"CommentPanelTool"
],
};
viewer.appendTo("#pdfViewer");Properties
annotationToolbarItem AnnotationToolbarItem[]
shows only the defined options in the PdfViewer.
showTooltip boolean
Enable or disables the tooltip of the toolbar.