Search results

AnnotationToolbarSettings API in Vue PDF Viewer API component

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",
         "ColorEditTool",
         "OpacityEditTool",
         "AnnotationDeleteTool",
         "StampAnnotationTool",
         "HandWrittenSignatureTool",
         "InkAnnotationTool",
         "ShapeTool",
         "CalibrateTool",
         "StrokeColorEditTool",
         "ThicknessEditTool",
         "FreeTextAnnotationTool",
         "FontFamilyAnnotationTool",
         "FontSizeAnnotationTool",
         "FontStylesAnnotationTool",
         "FontAlignAnnotationTool",
         "FontColorAnnotationTool",
         "CommentPanelTool"
     ],
 };
viewer.appendTo("#pdfViewer");

Properties

annotationToolbarItem

string[]

shows only the defined options in the PdfViewer.

showTooltip

boolean

Enable or disables the tooltip of the toolbar.