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.