API to show / hide the Annotations toolbar
|
<SfPdfViewer @ref="PDFViewer" DocumentPath="PDF_Succinctly.pdf" ServiceUrl="https://ej2services.syncfusion.com/production/web-services/api/pdfviewer" EnableAnnotationToolbar="false" Height="100%" Width="100%" >
</SfPdfViewer>
|
Regards,
Selvakumar
https://www.syncfusion.com/feedback/14541/showannotationtoolbar-method-not-working-properly
We have fixed the reported issue "ShowAnnotation Toolbar not working properly" and the fix for the issue was included in our latest weekly NuGet release v18.1.0.56. Kindly upgrade to the latest version to get the issue resolved. please find the API details and Code snippet below.
Code Snippet:
|
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. |
Selvakumar
Thank you! That works. Is there a similar call to open the "Handwritten Initials" window?
Attachment: Screenshot_Initials_262a8503.zip
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.
- 16 Replies
- 5 Participants
-
AB Arthur Butler
- May 13, 2020 07:56 PM UTC
- Jun 20, 2023 07:05 AM UTC