<SfPdfViewer @ref="PDFViewer" DocumentPath="PDF_Succinctly.pdf" ServiceUrl="https://ej2services.syncfusion.com/production/web-services/api/pdfviewer" EnableAnnotationToolbar="false" Height="100%" Width="100%" >
</SfPdfViewer>
|
PDFviewer.GetToolbar().ShowAnnotationToolbar(true); |
API NAME (Method) |
TYPE |
Descriptions |
ShowAnnotationToolbar |
Boolean |
If set as true, show the annotation Toolbar.
If set as false, hide the annotation Toolbar. |
Thank you! That works. Is there a similar call to open the "Handwritten Initials" window?
At present, Blazor PDF Viewer does not offer support for initials. Nevertheless, I can provide you with the code snippet that allows you to open handwritten signature dialog alone directly.
Code Snippet:
<div class="control-section"> <SfPdfViewerServer @ref="viewer" DocumentPath="@DocumentPath" Height="640px" Width="100%"> <PdfViewerEvents DocumentLoaded="DocumentLoad"></PdfViewerEvents> </SfPdfViewerServer> </div> @code { SfPdfViewerServer viewer; public async void DocumentLoad(LoadEventArgs args) { await viewer.SetAnnotationModeAsync(AnnotationType.HandWrittenSignature); } private string DocumentPath { get; set; } = "wwwroot/data/pdfviewer/hand-written-signature.pdf"; }
|
Online sample: https://blazor.syncfusion.com/demos/pdf-viewer/handwritten-signature?theme=fluent
Kindly try this and let us know if you have any concerns.