Customize the arrow annotation heads in Blazor PDF Viewer Component

17 Dec 20221 minute to read

You can customize the arrow annotation using the ArrowSettings API.

The following code illustrates how to remove the starting arrow and end arrow from arrow annotation.

@using Syncfusion.Blazor.PdfViewer
@using Syncfusion.Blazor.PdfViewerServer

<SfPdfViewerServer @ref="Viewer" DocumentPath="@DocumentPath" ArrowSettings="@ArrowSettings" Height="640px" Width="100%">
 <PdfViewerEvents DocumentLoaded="DocumentLoad"></PdfViewerEvents>

    public SfPdfViewerServer Viewer { get; set; }

    private string DocumentPath { get; set; } = "wwwroot/data/PDF Succinctly.pdf";

    PdfViewerArrowSettings ArrowSettings = new PdfViewerArrowSettings 
        //To remove the starting arrow.
        //To remove the end arrow.

    //Invokes while loading document in the PDFViewer. 
    public void DocumentLoad(LoadEventArgs args)
        //Shows the AnnotationToolbar on initial loading.


View sample in GitHub.