We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

how to customize Annotations toolbar

i need to customize Annotation toolbar in pdfviewer to hide unwanted icons or use another method to programmatically open signature. Is it possible to do this? 

thank you

1 Reply

VV Visvesvar Venkatesan Syncfusion Team October 24, 2022 07:53 AM

Hi Egidio,

We have provided the toolbar customization for Blazor PDF Viewer below.

UG Documentation - https://blazor.syncfusion.com/documentation/pdfviewer/toolbar-customization

We can also open the signature dialog box programmatically. Kindly find the code snippet and documentation link for it below.

Code snippet : 

@page "/pdf-viewer/handwritten-signature"
@using Syncfusion.Blazor.PdfViewerServer
@using Syncfusion.Blazor.PdfViewer
@inherits SampleBaseComponent;
<div class="control-section">
     <SfPdfViewerServer @ref="viewer" DocumentPath="@DocumentPath" Height="640px" Width="100%">
        <PdfViewerEvents DocumentLoaded="DocumentLoad"></PdfViewerEvents>
@code {
    SfPdfViewerServer viewer;
    public void DocumentLoad(LoadEventArgs args)
    private string DocumentPath { get; set; } = "wwwroot/data/pdfviewer/hand-written-signature.pdf";

Blazor Signature.png

Documentation - https://blazor.syncfusion.com/demos/pdf-viewer/handwritten-signature?theme=fluent

Kindly revert to us if you still have any concerns.


Visvesvar K V 

Live Chat Icon For mobile
Up arrow icon