ToolbarSettings

16 Dec 20253 minutes to read

The ToolbarSettings module is used to provide the toolbar settings of PDF viewer.

<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
 let viewer: PdfViewer = new PdfViewer();
 // Change the tool bar settings.
 viewer.toolbarSettings = {
     showTooltip: false,
     toolbarItems: [
         "OpenOption",
         "UndoRedoTool",
         "PageNavigationTool",
         "MagnificationTool",
         "PanTool",
         "SelectionTool",
         "CommentTool",
         "SubmitForm",
         "AnnotationEditTool",
         "FormDesignerEditTool",
         "FreeTextAnnotationOption",
         "InkAnnotationOption",
         "ShapeAnnotationOption",
         "StampAnnotation",
         "SignatureOption",
         "SearchOption",
         "PrintOption",
         "DownloadOption"
     ],
     annotationToolbarItems: [
         "HighlightTool",
         "UnderlineTool",
         "StrikethroughTool",
         "SquigglyTool",
         "ColorEditTool",
         "OpacityEditTool",
         "AnnotationDeleteTool",
         "StampAnnotationTool",
         "HandWrittenSignatureTool",
         "InkAnnotationTool",
         "ShapeTool",
         "CalibrateTool",
         "StrokeColorEditTool",
         "ThicknessEditTool",
         "FreeTextAnnotationTool",
         "FontFamilyAnnotationTool",
         "FontSizeAnnotationTool",
         "FontStylesAnnotationTool",
         "FontAlignAnnotationTool",
         "FontColorAnnotationTool",
         "CommentPanelTool"
     ],
     formDesignerToolbarItems: [
         "TextboxTool",
         "PasswordTool",
         "CheckBoxTool",
         "RadioButtonTool",
         "DropdownTool",
         "ListboxTool",
         "DrawSignatureTool",
         "DeleteTool"
     ]
 };
 viewer.appendTo("#pdfViewer");

Properties

annotationToolbarItems AnnotationToolbarItem[]

Provide option to customize the annotation toolbar of the PDF Viewer.

formDesignerToolbarItems FormDesignerToolbarItem[]

Customize the tools to be exposed in the form designer toolbar.

redactionToolbarItems RedactionToolbarItem[]

Provide option to customize the redaction toolbar of the PDF Viewer.
This redaction customization feature shall be available only when the PDF Viewer is operating in Standalone Mode.

showTooltip boolean

Enable or disables the tooltip of the toolbars.

toolbarItems []

shows only the defined options in the PdfViewer.