Customize annotation tool bar

Hi. Is it possible to customize the annotation tool bar? The area highlighted in yellow. I'd like to remove the underline, highlight, strike though, and free draw options. 




3 Replies 1 reply marked as answer

DM Dhivyabharathi Mohan Syncfusion Team August 25, 2021 01:19 PM UTC

Hi Luke, 
 
 
Thank you for contacting Syncfusion support. 
 
 
In our PDF Viewer, we can hide the annotation toolbar items by using the annotationtoolbarItems property in the toolbarSettings property. The items which we provided in the annotationtoolbarItems property will only display in the annotation toolbar and the remaining items will be hidden. We have shared the sample, code snippet and UG documentation links below. 
 
 
 
 
 
Code snippet: 
 
<ejs-pdfviewer id="pdfViewer" [serviceUrl]='service' [documentPath]='document' 
            [toolbarSettings]='toolbarSettings' style="height:640px;display:block"></ejs-pdfviewer> 
     
 
 
 public toolbarSettings = { 
    annotationToolbarItems: [ 
      'ShapeTool', 
      'ColorEditTool', 
      'StrokeColorEditTool', 
      'ThicknessEditTool', 
      'OpacityEditTool', 
      'AnnotationDeleteTool', 
      'StampAnnotationTool', 
      'InkAnnotationTool', 
      'FontFamilyAnnotationTool', 
      'FontSizeAnnotationTool', 
      'FontStylesAnnotationTool', 
      'FontAlignAnnotationTool', 
      'FontColorAnnotationTool', 
      'CommentPanelTool' 
    ] 
  }; 
 
 
 
 
  
Kindly try this and revert us, if you have any concerns. 
  
 
Regards, 
Dhivya. 


Marked as answer

LC Luke Carlson August 25, 2021 02:13 PM UTC

Hi Dhivya,


That worked great. Thank you! 



DM Dhivyabharathi Mohan Syncfusion Team August 26, 2021 06:42 AM UTC

Hi Luke, 
 
 
Thank you for your update. We are glad to know that the reported issue is resolved. Please revert to us, if you need further assistance. 
 
 
Regards, 
Dhivya. 


Loader.
Up arrow icon