Search results

ToolbarSettings API in JavaScript PDF Viewer API control

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",
         "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

string[]

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

formDesignerToolbarItems

string[]

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

showTooltip

boolean

Enable or disables the toolbar of PdfViewer.

toolbarItems

string[]

shows only the defined options in the PdfViewer.