From 488572771b67dd1c90596dc6071c381a2c5065e8 Mon Sep 17 00:00:00 2001 From: Tamilselvan-Durairaj <153176971+Tamilselvan-Durairaj@users.noreply.github.com> Date: Wed, 1 Oct 2025 01:30:03 +0530 Subject: [PATCH 1/5] 984373: Added the UG documentation for the annotation events --- Document-Processing-toc.html | 1 + .../PDF-Viewer/blazor/annotation/events.md | 419 ++++++++++++++++++ .../PDF/PDF-Viewer/blazor/events.md | 18 +- 3 files changed, 421 insertions(+), 17 deletions(-) create mode 100644 Document-Processing/PDF/PDF-Viewer/blazor/annotation/events.md diff --git a/Document-Processing-toc.html b/Document-Processing-toc.html index 0bb0a6d05..ca3234748 100644 --- a/Document-Processing-toc.html +++ b/Document-Processing-toc.html @@ -527,6 +527,7 @@
  • Comments
  • Import and Export Annotations
  • Annotations in Mobile View
  • +
  • Events
  • Form Designer diff --git a/Document-Processing/PDF/PDF-Viewer/blazor/annotation/events.md b/Document-Processing/PDF/PDF-Viewer/blazor/annotation/events.md new file mode 100644 index 000000000..04c1fc05a --- /dev/null +++ b/Document-Processing/PDF/PDF-Viewer/blazor/annotation/events.md @@ -0,0 +1,419 @@ +--- +layout: post +title: Annotation Events in Blazor SfPdfViewer Component | Syncfusion +description: Learn how to subscribe to and handle annotation events in the Syncfusion Blazor SfPdfViewer. +platform: document-processing +control: SfPdfViewer +documentation: ug +--- + +# Annotation Events in Blazor SfPdfViewer Component + +Annotation events notify the application when annotations are added, selected, moved, resized, modified, or removed. The following events can be subscribed through the PdfViewerEvents tag in the SfPdfViewer component. + +|Name|Description| +|---|---| +|AddSignature|Triggers when a signature is added to a page in the PDF document.| +|AnnotationAdded|Triggers when an annotation is added to a page in the PDF document.| +|AnnotationMouseover|Triggers when the mouse pointer moves over an annotation object.| +|AnnotationMoved|Triggers when an annotation is moved on a page in the PDF document.| +|AnnotationPropertiesChanged|Triggers when annotation properties are modified on a PDF page.| +|AnnotationRemoved|Triggers when an annotation is removed from a page in the PDF document.| +|AnnotationResized|Triggers when an annotation is resized on a page in the PDF document.| +|AnnotationSelected|Triggers when an annotation is selected on a page in the PDF document.| +|AnnotationUnselected|Triggers when an annotation is unselected on a page in the PDF document.| +|MoveSignature|Triggers when a signature is moved on a page in the PDF document.| +|OnAnnotationDoubleClick|Triggers when an annotation is double-clicked.| +|RemoveSignature|Triggers when a signature is removed from a page in the PDF document.| +|ResizeSignature|Triggers when a signature is resized on a page in the PDF document.| +|SignaturePropertiesChange|Triggers when the properties of a signature are changed on a page in the PDF document.| +|SignatureSelected|Triggers when a signature is selected on a page in the PDF document.| +|SignatureUnselected|Triggers when a signature is unselected on a page in the PDF document.| + +## AddSignature Event + +The [AddSignature](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AddSignature) event triggers when a signature is added to a page in the PDF document. + +The following example illustrates how to handle the AddSignature event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task AddSignature(AddSignatureEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## AnnotationAdded Event + +The [AnnotationAdded](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationAdded) event triggers when an annotation is added to a page in the PDF document. + +The following example illustrates how to handle the AnnotationAdded event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task AnnotationAdded(AnnotationAddEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## AnnotationMouseover Event + +The [AnnotationMouseover](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationMouseover) event triggers when the mouse pointer moves over an annotation object. + +The following example illustrates how to handle the AnnotationMouseover event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task AnnotationMouseover(AnnotationMouseoverEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## AnnotationMoved Event + +The [AnnotationMoved](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationMoved) event triggers when an annotation is moved on a page in the PDF document. + +The following example illustrates how to handle the AnnotationMoved event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task AnnotationMoved(AnnotationMoveEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## AnnotationPropertiesChanged Event + +The [AnnotationPropertiesChanged](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationPropertiesChanged) event triggers when annotation properties are modified on a PDF page. + +The following example illustrates how to handle the AnnotationPropertiesChanged event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task AnnotationPropertiesChanged(AnnotationPropertiesChangeEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## AnnotationRemoved Event + +The [AnnotationRemoved](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationRemoved) event triggers when an annotation is removed from a page in the PDF document. + +The following example illustrates how to handle the AnnotationRemoved event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task AnnotationRemoved(AnnotationRemoveEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## AnnotationResized Event + +The [AnnotationResized](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationResized) event triggers when an annotation is resized on a page in the PDF document. + +The following example illustrates how to handle the AnnotationResized event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task AnnotationResized(AnnotationResizeEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## AnnotationSelected Event + +The [AnnotationSelected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationSelected) event triggers when an annotation is selected on a page in the PDF document. + +The following example illustrates how to handle the AnnotationSelected event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task AnnotationSelected(AnnotationSelectEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## AnnotationUnselected Event + +The [AnnotationUnselected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationUnselected) event triggers when an annotation is unselected on a page in the PDF document. + +The following example illustrates how to handle the AnnotationUnselected event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task AnnotationUnselected(AnnotationUnselectEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## MoveSignature Event + +The [MoveSignature](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_MoveSignature) event triggers when a signature is moved on a page in the PDF document. + +The following example illustrates how to handle the MoveSignature event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task MoveSignature(MoveSignatureEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## OnAnnotationDoubleClick Event + +The [OnAnnotationDoubleClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnAnnotationDoubleClick) event triggers when an annotation is double-clicked. + +The following example illustrates how to handle the OnAnnotationDoubleClick event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task OnAnnotationDoubleClick(AnnotationDoubleClickEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## RemoveSignature Event + +The [RemoveSignature](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_RemoveSignature) event triggers when a signature is removed from a page in the PDF document. + +The following example illustrates how to handle the RemoveSignature event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task RemoveSignature(RemoveSignatureEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## ResizeSignature Event + +The [ResizeSignature](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ResizeSignature) event triggers when a signature is resized on a page in the PDF document. + +The following example illustrates how to handle the ResizeSignature event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task ResizeSignature(ResizeSignatureEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## SignaturePropertiesChange Event + +The [SignaturePropertiesChange](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_SignaturePropertiesChange) event triggers when the properties of a signature are changed on a page in the PDF document. + +The following example illustrates how to handle the SignaturePropertiesChange event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task SignaturePropertiesChange(SignaturePropertiesChangeEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## SignatureSelected Event + +The [SignatureSelected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_SignatureSelected) event triggers when a signature is selected on a page in the PDF document. + +The following example illustrates how to handle the SignatureSelected event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task SignatureSelected(SignatureSelectEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## SignatureUnselected Event + +The [SignatureUnselected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_SignatureUnselected) event triggers when a signature is unselected on a page in the PDF document. + +The following example illustrates how to handle the SignatureUnselected event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task SignatureUnselected(SignatureSelectEventArgs args) + { + Console.WriteLine(args.EditingAction); + } +} + +``` + +## See also + +* [Events in Blazor SfPdfViewer Component](../events) \ No newline at end of file diff --git a/Document-Processing/PDF/PDF-Viewer/blazor/events.md b/Document-Processing/PDF/PDF-Viewer/blazor/events.md index 3a5f324b4..f1d36b4a9 100644 --- a/Document-Processing/PDF/PDF-Viewer/blazor/events.md +++ b/Document-Processing/PDF/PDF-Viewer/blazor/events.md @@ -1,7 +1,7 @@ --- layout: post title: Events in Blazor SfPdfViewer Component | Syncfusion -description: Explore all events available in the Syncfusion Blazor SfPdfViewer component, including lifecycle, navigation, annotation, search, and printing events. +description: Explore all events available in the Syncfusion Blazor SfPdfViewer component, including lifecycle, navigation, search, and printing events. platform: document-processing control: SfPdfViewer documentation: ug @@ -13,16 +13,7 @@ The following events are available in the SfPdfViewer component. |Name|Description| |---|---| -|AddSignature|Triggers when a signature is added to a page in the PDF document.| |AjaxRequestFailed|Triggers when an AJAX request fails.| -|AnnotationAdded|Triggers when an annotation is added to a page in the PDF document.| -|AnnotationMouseover|Triggers when the mouse pointer moves over an annotation object.| -|AnnotationMoved|Triggers when an annotation is moved on a page in the PDF document.| -|AnnotationPropertiesChanged|Triggers when annotation properties are modified on a PDF page.| -|AnnotationRemoved|Triggers when an annotation is removed from a page in the PDF document.| -|AnnotationResized|Triggers when an annotation is resized on a page in the PDF document.| -|AnnotationSelected|Triggers when an annotation is selected on a page in the PDF document.| -|AnnotationUnselected|Triggers when an annotation is unselected on a page in the PDF document.| |Created|Triggers when the PDF Viewer component is created.| |DocumentEdited|Triggers when the PDF document is edited in the SfPdfViewer.| |DocumentLoaded|Triggers when a document is loaded into the PDF Viewer.| @@ -37,8 +28,6 @@ The following events are available in the SfPdfViewer component. |ImportFailed|Triggers when importing annotations fails in the PDF document.| |ImportStarted|Triggers when importing annotations starts in the PDF document.| |ImportSucceed|Triggers when importing annotations succeeds in the PDF document.| -|MoveSignature|Triggers when a signature is moved on a page in the PDF document.| -|OnAnnotationDoubleClick|Triggers when an annotation is double-clicked.| |OnHyperlinkClick|Triggers when a hyperlink in the PDF document is clicked.| |OnHyperlinkMouseOver|Triggers when a hyperlink in the PDF document is hovered.| |OnPageClick|Triggers when a mouse click is performed on a page in the PDF document.| @@ -52,11 +41,6 @@ The following events are available in the SfPdfViewer component. |PageMouseover|Triggers when the mouse pointer moves over a page.| |PrintEnd|Triggers when a print action is completed.| |PrintStart|Triggers when a print action starts.| -|RemoveSignature|Triggers when a signature is removed from a page in the PDF document.| -|ResizeSignature|Triggers when a signature is resized on a page in the PDF document.| -|SignaturePropertiesChange|Triggers when the properties of a signature are changed on a page in the PDF document.| -|SignatureSelected|Triggers when a signature is selected on a page in the PDF document.| -|SignatureUnselected|Triggers when a signature is unselected on a page in the PDF document.| |ZoomChanged|Triggers when the magnification value changes.| ## Adding SfPdfViewer events to Blazor component From de9b03d45dd36ec30313b70f0f83fc36a53676ba Mon Sep 17 00:00:00 2001 From: Tamilselvan-Durairaj <153176971+Tamilselvan-Durairaj@users.noreply.github.com> Date: Wed, 1 Oct 2025 02:09:39 +0530 Subject: [PATCH 2/5] 984373: Update the CI failure --- .../PDF-Viewer/blazor/annotation/events.md | 100 ++++++++++++++---- 1 file changed, 82 insertions(+), 18 deletions(-) diff --git a/Document-Processing/PDF/PDF-Viewer/blazor/annotation/events.md b/Document-Processing/PDF/PDF-Viewer/blazor/annotation/events.md index 04c1fc05a..3fbec229a 100644 --- a/Document-Processing/PDF/PDF-Viewer/blazor/annotation/events.md +++ b/Document-Processing/PDF/PDF-Viewer/blazor/annotation/events.md @@ -1,7 +1,7 @@ --- layout: post title: Annotation Events in Blazor SfPdfViewer Component | Syncfusion -description: Learn how to subscribe to and handle annotation events in the Syncfusion Blazor SfPdfViewer. +description: Learn how to subscribe to and handle annotations and signature annotation events in the Syncfusion Blazor SfPdfViewer. platform: document-processing control: SfPdfViewer documentation: ug @@ -9,7 +9,7 @@ documentation: ug # Annotation Events in Blazor SfPdfViewer Component -Annotation events notify the application when annotations are added, selected, moved, resized, modified, or removed. The following events can be subscribed through the PdfViewerEvents tag in the SfPdfViewer component. +Annotation events notify the application when annotations are added, selected, moved, resized, modified, or removed. Subscribe to these events by using the PdfViewerEvents tag inside the SfPdfViewer component. |Name|Description| |---|---| @@ -34,6 +34,10 @@ Annotation events notify the application when annotations are added, selected, m The [AddSignature](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AddSignature) event triggers when a signature is added to a page in the PDF document. +#### Event Arguments + +For event data, see [AddSignatureEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.AddSignatureEventArgs.html) for properties such as AnnotationId, PageNumber, and Bounds. + The following example illustrates how to handle the AddSignature event. ```cshtml @@ -48,7 +52,7 @@ The following example illustrates how to handle the AddSignature event. private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task AddSignature(AddSignatureEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Added Signature ID: {args.AnnotationId}"); } } @@ -58,6 +62,10 @@ The following example illustrates how to handle the AddSignature event. The [AnnotationAdded](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationAdded) event triggers when an annotation is added to a page in the PDF document. +#### Event Arguments + +See [AnnotationAddedEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.AnnotationAddedEventArgs.html) for details such as AnnotationId, AnnotationType, PageNumber, and Bounds. + The following example illustrates how to handle the AnnotationAdded event. ```cshtml @@ -72,7 +80,7 @@ The following example illustrates how to handle the AnnotationAdded event. private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task AnnotationAdded(AnnotationAddEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Added Annotation ID: {args.AnnotationId}"); } } @@ -82,6 +90,10 @@ The following example illustrates how to handle the AnnotationAdded event. The [AnnotationMouseover](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationMouseover) event triggers when the mouse pointer moves over an annotation object. +#### Event Arguments + +See [AnnotationMouseoverEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.AnnotationMouseoverEventArgs.html) for details such as AnnotationId, AnnotationType, PageNumber, and cursor position. + The following example illustrates how to handle the AnnotationMouseover event. ```cshtml @@ -96,7 +108,7 @@ The following example illustrates how to handle the AnnotationMouseover event. private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task AnnotationMouseover(AnnotationMouseoverEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Annotation Mouseover X: {args.X} and y: {args.X}"); } } @@ -106,6 +118,10 @@ The following example illustrates how to handle the AnnotationMouseover event. The [AnnotationMoved](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationMoved) event triggers when an annotation is moved on a page in the PDF document. +#### Event Arguments + +See [AnnotationMovedEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.AnnotationMovedEventArgs.html) for details such as AnnotationId, PageNumber, PreviousBounds, and Bounds. + The following example illustrates how to handle the AnnotationMoved event. ```cshtml @@ -120,7 +136,7 @@ The following example illustrates how to handle the AnnotationMoved event. private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task AnnotationMoved(AnnotationMoveEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Annotation Current Position: {args.CurrentPosition}"); } } @@ -130,6 +146,10 @@ The following example illustrates how to handle the AnnotationMoved event. The [AnnotationPropertiesChanged](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationPropertiesChanged) event triggers when annotation properties are modified on a PDF page. +#### Event Arguments + +See [AnnotationPropertiesChangedEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.AnnotationPropertiesChangedEventArgs.html) for details such as AnnotationId, PageNumber, changed property names, and old/new values. + The following example illustrates how to handle the AnnotationPropertiesChanged event. ```cshtml @@ -144,7 +164,7 @@ The following example illustrates how to handle the AnnotationPropertiesChanged private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task AnnotationPropertiesChanged(AnnotationPropertiesChangeEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Is Annotation Color Changed: {args.IsColorChanged}"); } } @@ -154,6 +174,10 @@ The following example illustrates how to handle the AnnotationPropertiesChanged The [AnnotationRemoved](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationRemoved) event triggers when an annotation is removed from a page in the PDF document. +#### Event Arguments + +See [AnnotationRemovedEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.AnnotationRemovedEventArgs.html) for details such as AnnotationId, AnnotationType, and PageNumber. + The following example illustrates how to handle the AnnotationRemoved event. ```cshtml @@ -168,7 +192,7 @@ The following example illustrates how to handle the AnnotationRemoved event. private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task AnnotationRemoved(AnnotationRemoveEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Removed Annotation ID: {args.AnnotationId}"); } } @@ -178,6 +202,10 @@ The following example illustrates how to handle the AnnotationRemoved event. The [AnnotationResized](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationResized) event triggers when an annotation is resized on a page in the PDF document. +#### Event Arguments + +See [AnnotationResizedEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.AnnotationResizedEventArgs.html) for details such as AnnotationId, PageNumber, PreviousBounds, and Bounds. + The following example illustrates how to handle the AnnotationResized event. ```cshtml @@ -192,7 +220,7 @@ The following example illustrates how to handle the AnnotationResized event. private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task AnnotationResized(AnnotationResizeEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Resized Annotation ID: {args.AnnotationId}"); } } @@ -202,6 +230,10 @@ The following example illustrates how to handle the AnnotationResized event. The [AnnotationSelected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationSelected) event triggers when an annotation is selected on a page in the PDF document. +#### Event Arguments + +See [AnnotationSelectedEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.AnnotationSelectedEventArgs.html) for details such as AnnotationId, AnnotationType, and PageNumber. + The following example illustrates how to handle the AnnotationSelected event. ```cshtml @@ -216,7 +248,7 @@ The following example illustrates how to handle the AnnotationSelected event. private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task AnnotationSelected(AnnotationSelectEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Selected Annotation ID: {args.AnnotationId}"); } } @@ -226,6 +258,10 @@ The following example illustrates how to handle the AnnotationSelected event. The [AnnotationUnselected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationUnselected) event triggers when an annotation is unselected on a page in the PDF document. +#### Event Arguments + +See [AnnotationUnselectedEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.AnnotationUnselectedEventArgs.html) for details such as AnnotationId, AnnotationType, and PageNumber. + The following example illustrates how to handle the AnnotationUnselected event. ```cshtml @@ -240,7 +276,7 @@ The following example illustrates how to handle the AnnotationUnselected event. private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task AnnotationUnselected(AnnotationUnselectEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"UnSelected Annotation ID: {args.AnnotationId}"); } } @@ -250,6 +286,10 @@ The following example illustrates how to handle the AnnotationUnselected event. The [MoveSignature](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_MoveSignature) event triggers when a signature is moved on a page in the PDF document. +#### Event Arguments + +See [MoveSignatureEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.MoveSignatureEventArgs.html) for details such as AnnotationId, PageNumber, PreviousBounds, and Bounds. + The following example illustrates how to handle the MoveSignature event. ```cshtml @@ -264,7 +304,7 @@ The following example illustrates how to handle the MoveSignature event. private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task MoveSignature(MoveSignatureEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Moved Signture ID: {args.AnnotationId}"); } } @@ -274,6 +314,10 @@ The following example illustrates how to handle the MoveSignature event. The [OnAnnotationDoubleClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnAnnotationDoubleClick) event triggers when an annotation is double-clicked. +#### Event Arguments + +See [AnnotationDoubleClickEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.AnnotationDoubleClickEventArgs.html) for details such as AnnotationId, AnnotationType, PageNumber, and mouse position. + The following example illustrates how to handle the OnAnnotationDoubleClick event. ```cshtml @@ -288,7 +332,7 @@ The following example illustrates how to handle the OnAnnotationDoubleClick even private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task OnAnnotationDoubleClick(AnnotationDoubleClickEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Double Clicked Annotation ID: {args.AnnotationId}"); } } @@ -298,6 +342,10 @@ The following example illustrates how to handle the OnAnnotationDoubleClick even The [RemoveSignature](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_RemoveSignature) event triggers when a signature is removed from a page in the PDF document. +#### Event Arguments + +See [RemoveSignatureEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.RemoveSignatureEventArgs.html) for details such as AnnotationId and PageNumber. + The following example illustrates how to handle the RemoveSignature event. ```cshtml @@ -312,7 +360,7 @@ The following example illustrates how to handle the RemoveSignature event. private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task RemoveSignature(RemoveSignatureEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Removed Signature ID: {args.AnnotationId}"); } } @@ -322,6 +370,10 @@ The following example illustrates how to handle the RemoveSignature event. The [ResizeSignature](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ResizeSignature) event triggers when a signature is resized on a page in the PDF document. +#### Event Arguments + +See [ResizeSignatureEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.ResizeSignatureEventArgs.html) for details such as AnnotationId, PageNumber, PreviousBounds, and Bounds. + The following example illustrates how to handle the ResizeSignature event. ```cshtml @@ -336,7 +388,7 @@ The following example illustrates how to handle the ResizeSignature event. private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task ResizeSignature(ResizeSignatureEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Resized Signature ID: {args.AnnotationId}"); } } @@ -346,6 +398,10 @@ The following example illustrates how to handle the ResizeSignature event. The [SignaturePropertiesChange](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_SignaturePropertiesChange) event triggers when the properties of a signature are changed on a page in the PDF document. +#### Event Arguments + +See [SignaturePropertiesChangeEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.SignaturePropertiesChangeEventArgs.html) for details such as AnnotationId, PageNumber, and changed property values. + The following example illustrates how to handle the SignaturePropertiesChange event. ```cshtml @@ -360,7 +416,7 @@ The following example illustrates how to handle the SignaturePropertiesChange ev private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task SignaturePropertiesChange(SignaturePropertiesChangeEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Is Stroke Color Changed: {args.IsStrokeColorChanged}"); } } @@ -370,6 +426,10 @@ The following example illustrates how to handle the SignaturePropertiesChange ev The [SignatureSelected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_SignatureSelected) event triggers when a signature is selected on a page in the PDF document. +#### Event Arguments + +See [SignatureSelectedEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.SignatureSelectedEventArgs.html) for details such as AnnotationId and PageNumber. + The following example illustrates how to handle the SignatureSelected event. ```cshtml @@ -384,7 +444,7 @@ The following example illustrates how to handle the SignatureSelected event. private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task SignatureSelected(SignatureSelectEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"Selected Signture ID: {args.AnnotationId}"); } } @@ -394,6 +454,10 @@ The following example illustrates how to handle the SignatureSelected event. The [SignatureUnselected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_SignatureUnselected) event triggers when a signature is unselected on a page in the PDF document. +#### Event Arguments + +See [SignatureUnselectedEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.SignatureUnselectedEventArgs.html) for details such as AnnotationId and PageNumber. + The following example illustrates how to handle the SignatureUnselected event. ```cshtml @@ -408,7 +472,7 @@ The following example illustrates how to handle the SignatureUnselected event. private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; public async Task SignatureUnselected(SignatureSelectEventArgs args) { - Console.WriteLine(args.EditingAction); + Console.WriteLine($"UnSelected Signature ID: {args.AnnotationId}"); } } From 09010de60cf4980e56bd46e05ad6d0bf03b8fa40 Mon Sep 17 00:00:00 2001 From: Tamilselvan-Durairaj <153176971+Tamilselvan-Durairaj@users.noreply.github.com> Date: Wed, 1 Oct 2025 14:11:51 +0530 Subject: [PATCH 3/5] 984373: Update the see also section --- Document-Processing/PDF/PDF-Viewer/blazor/events.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Document-Processing/PDF/PDF-Viewer/blazor/events.md b/Document-Processing/PDF/PDF-Viewer/blazor/events.md index f1d36b4a9..23cfb3d64 100644 --- a/Document-Processing/PDF/PDF-Viewer/blazor/events.md +++ b/Document-Processing/PDF/PDF-Viewer/blazor/events.md @@ -122,4 +122,9 @@ The following example illustrates how to handle the DocumentEdited event. In thi ``` -[View sample in GitHub](https://github.com/SyncfusionExamples/blazor-pdf-viewer-examples/tree/master/Load%20and%20Save/Load%20a%20PDF%20document%20using%20created%20event) \ No newline at end of file +[View sample in GitHub](https://github.com/SyncfusionExamples/blazor-pdf-viewer-examples/tree/master/Load%20and%20Save/Load%20a%20PDF%20document%20using%20created%20event) + +## See also + +* [Annotation Events in Blazor SfPdfViewer Component](./annotation/events) +* [Form Fields Events in Blazor SfPdfViewer Component](./form-designer/events) \ No newline at end of file From c3e7d9e2d81dff186958d9a3c31f4741e3f09c01 Mon Sep 17 00:00:00 2001 From: Tamilselvan-Durairaj <153176971+Tamilselvan-Durairaj@users.noreply.github.com> Date: Fri, 3 Oct 2025 16:13:19 +0530 Subject: [PATCH 4/5] 984373: Update the events --- .../PDF-Viewer/blazor/annotation/events.md | 174 ++++++++++++++++++ .../PDF/PDF-Viewer/blazor/events.md | 48 ++++- 2 files changed, 214 insertions(+), 8 deletions(-) diff --git a/Document-Processing/PDF/PDF-Viewer/blazor/annotation/events.md b/Document-Processing/PDF/PDF-Viewer/blazor/annotation/events.md index 3fbec229a..e26e6b7dd 100644 --- a/Document-Processing/PDF/PDF-Viewer/blazor/annotation/events.md +++ b/Document-Processing/PDF/PDF-Viewer/blazor/annotation/events.md @@ -22,6 +22,12 @@ Annotation events notify the application when annotations are added, selected, m |AnnotationResized|Triggers when an annotation is resized on a page in the PDF document.| |AnnotationSelected|Triggers when an annotation is selected on a page in the PDF document.| |AnnotationUnselected|Triggers when an annotation is unselected on a page in the PDF document.| +|ExportFailed|Triggers when exporting annotations fails in the SfPdfViewer.| +|ExportStarted|Triggers when exporting annotations starts in the SfPdfViewer.| +|ExportSucceed|Triggers when exporting annotations succeeds in the SfPdfViewer.| +|ImportFailed|Triggers when importing annotations fails in the PDF document.| +|ImportStarted|Triggers when importing annotations starts in the PDF document.| +|ImportSucceed|Triggers when importing annotations succeeds in the PDF document.| |MoveSignature|Triggers when a signature is moved on a page in the PDF document.| |OnAnnotationDoubleClick|Triggers when an annotation is double-clicked.| |RemoveSignature|Triggers when a signature is removed from a page in the PDF document.| @@ -282,6 +288,174 @@ The following example illustrates how to handle the AnnotationUnselected event. ``` +## ExportFailed Event + +The [ExportFailed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ExportFailed) event triggers when an export annotations failed in the PDF Viewer. + +#### Event Arguments + +See [ExportFailureEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.ExportFailureEventArgs.html) for details such as ErrorDetails. + +The following example illustrates how to handle the ExportFailed event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task ExportFailed(ExportFailureEventArgs args) + { + Console.WriteLine($"Error details: {args.ErrorDetails}"); + } +} + +``` + +## ExportStarted Event + +The [ExportStarted](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ExportStarted) event triggers when an exported annotations started in the PDF Viewer. + +#### Event Arguments + +See [ExportStartEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.ExportStartEventArgs.html) triggers when an exported annotations started in the PDF Viewer. + +The following example illustrates how to handle the ExportStarted event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task ExportStarted(ExportStartEventArgs args) + { + Console.WriteLine("Export Action Started"); + } +} + +``` + +## ExportSucceed Event + +The [ExportSucceed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ExportSucceed) event triggers when an export annotations succeed in the PDF Viewer. + +#### Event Arguments + +See [ExportSuccessEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.ExportSuccessEventArgs.html) for details such as FileName. + +The following example illustrates how to handle the ExportSucceed event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task ExportSucceed(ExportSuccessEventArgs args) + { + Console.WriteLine($"Exported File name : {args.FileName }"); + } +} + +``` + +## ImportFailed Event + +The [ImportFailed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ImportFailed) event triggers when an imports annotations failed in the PDF document. + +#### Event Arguments + +See [ImportFailureEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.ImportFailureEventArgs.html) for details such as ErrorDetails. + +The following example illustrates how to handle the ImportFailed event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task ImportFailed(ImportFailureEventArgs args) + { + Console.WriteLine($"Error details: {args.ErrorDetails}"); + } +} + +``` + +## ImportStarted Event + +The [ImportStarted](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ImportStarted) event triggers when an imported annotations started in the PDF document. + +#### Event Arguments + +See [ImportStartEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.ImportStartEventArgs.html) triggers when an imported annotations started in the PDF document. + +The following example illustrates how to handle the ImportStarted event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task ImportStarted(ImportStartEventArgs args) + { + Console.WriteLine("Import Annotation Started"); + } +} + +``` + +## ImportSucceed Event + +The [ImportSucceed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ImportSucceed) event triggers when an imports annotations succeed in the PDF document. + +#### Event Arguments + +See [ImportSuccessEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.ImportSuccessEventArgs.html) triggers when an imports annotations succeed in the PDF document. + +The following example illustrates how to handle the ImportSucceed event. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succintly.pdf"; + public async Task ImportSucceed(ImportSuccessEventArgs args) + { + Console.WriteLine("Annotation Imported Successfully"); + } +} + +``` + ## MoveSignature Event The [MoveSignature](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_MoveSignature) event triggers when a signature is moved on a page in the PDF document. diff --git a/Document-Processing/PDF/PDF-Viewer/blazor/events.md b/Document-Processing/PDF/PDF-Viewer/blazor/events.md index 23cfb3d64..c4471030e 100644 --- a/Document-Processing/PDF/PDF-Viewer/blazor/events.md +++ b/Document-Processing/PDF/PDF-Viewer/blazor/events.md @@ -1,7 +1,7 @@ --- layout: post title: Events in Blazor SfPdfViewer Component | Syncfusion -description: Explore all events available in the Syncfusion Blazor SfPdfViewer component, including lifecycle, navigation, search, and printing events. +description: Explore all events available in the Syncfusion Blazor SfPdfViewer component, including lifecycle, navigation, annotation, search, and printing events. platform: document-processing control: SfPdfViewer documentation: ug @@ -13,7 +13,15 @@ The following events are available in the SfPdfViewer component. |Name|Description| |---|---| -|AjaxRequestFailed|Triggers when an AJAX request fails.| +|AddSignature|Triggers when a signature is added to a page in the PDF document.| +|AnnotationAdded|Triggers when an annotation is added to a page in the PDF document.| +|AnnotationMouseover|Triggers when the mouse pointer moves over an annotation object.| +|AnnotationMoved|Triggers when an annotation is moved on a page in the PDF document.| +|AnnotationPropertiesChanged|Triggers when annotation properties are modified on a PDF page.| +|AnnotationRemoved|Triggers when an annotation is removed from a page in the PDF document.| +|AnnotationResized|Triggers when an annotation is resized on a page in the PDF document.| +|AnnotationSelected|Triggers when an annotation is selected on a page in the PDF document.| +|AnnotationUnselected|Triggers when an annotation is unselected on a page in the PDF document.| |Created|Triggers when the PDF Viewer component is created.| |DocumentEdited|Triggers when the PDF document is edited in the SfPdfViewer.| |DocumentLoaded|Triggers when a document is loaded into the PDF Viewer.| @@ -25,9 +33,31 @@ The following events are available in the SfPdfViewer component. |ExportStarted|Triggers when exporting annotations starts in the SfPdfViewer.| |ExportSucceed|Triggers when exporting annotations succeeds in the SfPdfViewer.| |ExtractTextCompleted|Triggers when text extraction is completed in the SfPdfViewer.| +|FormFieldAdded|Triggered when a form field is added to the PDF document.| +|FormFieldAdding|Triggered before a new form field is added, allowing validation before insertion.| +|FormFieldClick|Triggered when a user clicks on a form field while designer mode is off.| +|FormFieldDeleted|Triggered when a form field is removed from the document.| +|FormFieldDoubleClick|Triggered when a form field is double-clicked.| +|FormFieldFocusIn|Triggered when focus enters a form field.| +|FormFieldFocusOut|Triggered when focus leaves a form field.| +|FormFieldMouseEnter|Triggered when the mouse hovers over a form field.| +|FormFieldMouseLeave|Triggered when the mouse leaves a form field.| +|FormFieldPropertyChanged|Triggered when a form field's properties are modified.| +|FormFieldResized|Triggered when a form field is resized.| +|FormFieldSelected|Triggered when a form field is selected.| +|FormFieldsExported|Triggered when form fields are successfully exported.| +|FormFieldsExportFailed |Triggered when form fields export operation fails.| +|FormFieldsExporting|Triggered before form fields are exported, allowing customization of the export process.| +|FormFieldsImported|Triggered when form fields are successfully imported.| +|FormFieldsImportFailed |Triggered when form fields import operation fails.| +|FormFieldsImporting|Triggered before form fields are imported, allowing validation or modifications.| +|FormFieldUnselected|Triggered when a form field is unselected.| |ImportFailed|Triggers when importing annotations fails in the PDF document.| |ImportStarted|Triggers when importing annotations starts in the PDF document.| |ImportSucceed|Triggers when importing annotations succeeds in the PDF document.| +|IsDesignerModeChanged|Triggered when the designer mode state changes in the PDF Viewer.| +|MoveSignature|Triggers when a signature is moved on a page in the PDF document.| +|OnAnnotationDoubleClick|Triggers when an annotation is double-clicked.| |OnHyperlinkClick|Triggers when a hyperlink in the PDF document is clicked.| |OnHyperlinkMouseOver|Triggers when a hyperlink in the PDF document is hovered.| |OnPageClick|Triggers when a mouse click is performed on a page in the PDF document.| @@ -41,6 +71,13 @@ The following events are available in the SfPdfViewer component. |PageMouseover|Triggers when the mouse pointer moves over a page.| |PrintEnd|Triggers when a print action is completed.| |PrintStart|Triggers when a print action starts.| +|RemoveSignature|Triggers when a signature is removed from a page in the PDF document.| +|ResizeSignature|Triggers when a signature is resized on a page in the PDF document.| +|SignaturePropertiesChange|Triggers when the properties of a signature are changed on a page in the PDF document.| +|SignatureSelected|Triggers when a signature is selected on a page in the PDF document.| +|SignatureUnselected|Triggers when a signature is unselected on a page in the PDF document.| +|ToolbarClicked|Triggers an event when a Custom Toolbar Item is clicked in the Toolbar.| +|ValidateFormFields|Triggered when form fields are validated.| |ZoomChanged|Triggers when the magnification value changes.| ## Adding SfPdfViewer events to Blazor component @@ -122,9 +159,4 @@ The following example illustrates how to handle the DocumentEdited event. In thi ``` -[View sample in GitHub](https://github.com/SyncfusionExamples/blazor-pdf-viewer-examples/tree/master/Load%20and%20Save/Load%20a%20PDF%20document%20using%20created%20event) - -## See also - -* [Annotation Events in Blazor SfPdfViewer Component](./annotation/events) -* [Form Fields Events in Blazor SfPdfViewer Component](./form-designer/events) \ No newline at end of file +[View sample in GitHub](https://github.com/SyncfusionExamples/blazor-pdf-viewer-examples/tree/master/Load%20and%20Save/Load%20a%20PDF%20document%20using%20created%20event) \ No newline at end of file From aca05416fccedc627fdabd15120a84616bb981ac Mon Sep 17 00:00:00 2001 From: Tamilselvan-Durairaj <153176971+Tamilselvan-Durairaj@users.noreply.github.com> Date: Mon, 6 Oct 2025 18:08:07 +0530 Subject: [PATCH 5/5] 984373: Update the events md file --- .../PDF/PDF-Viewer/blazor/events.md | 139 +++++++++--------- 1 file changed, 72 insertions(+), 67 deletions(-) diff --git a/Document-Processing/PDF/PDF-Viewer/blazor/events.md b/Document-Processing/PDF/PDF-Viewer/blazor/events.md index c4471030e..82b261559 100644 --- a/Document-Processing/PDF/PDF-Viewer/blazor/events.md +++ b/Document-Processing/PDF/PDF-Viewer/blazor/events.md @@ -13,72 +13,72 @@ The following events are available in the SfPdfViewer component. |Name|Description| |---|---| -|AddSignature|Triggers when a signature is added to a page in the PDF document.| -|AnnotationAdded|Triggers when an annotation is added to a page in the PDF document.| -|AnnotationMouseover|Triggers when the mouse pointer moves over an annotation object.| -|AnnotationMoved|Triggers when an annotation is moved on a page in the PDF document.| -|AnnotationPropertiesChanged|Triggers when annotation properties are modified on a PDF page.| -|AnnotationRemoved|Triggers when an annotation is removed from a page in the PDF document.| -|AnnotationResized|Triggers when an annotation is resized on a page in the PDF document.| -|AnnotationSelected|Triggers when an annotation is selected on a page in the PDF document.| -|AnnotationUnselected|Triggers when an annotation is unselected on a page in the PDF document.| -|Created|Triggers when the PDF Viewer component is created.| -|DocumentEdited|Triggers when the PDF document is edited in the SfPdfViewer.| -|DocumentLoaded|Triggers when a document is loaded into the PDF Viewer.| -|DocumentLoadFailed|Triggers when loading a document into the PDF Viewer fails.| -|DcoumentUnloaded|Triggers when the document is closed.| -|DownloadEnd|Triggers when a download action is completed.| -|DownloadStart|Triggers when a download action starts.| -|ExportFailed|Triggers when exporting annotations fails in the SfPdfViewer.| -|ExportStarted|Triggers when exporting annotations starts in the SfPdfViewer.| -|ExportSucceed|Triggers when exporting annotations succeeds in the SfPdfViewer.| -|ExtractTextCompleted|Triggers when text extraction is completed in the SfPdfViewer.| -|FormFieldAdded|Triggered when a form field is added to the PDF document.| -|FormFieldAdding|Triggered before a new form field is added, allowing validation before insertion.| -|FormFieldClick|Triggered when a user clicks on a form field while designer mode is off.| -|FormFieldDeleted|Triggered when a form field is removed from the document.| -|FormFieldDoubleClick|Triggered when a form field is double-clicked.| -|FormFieldFocusIn|Triggered when focus enters a form field.| -|FormFieldFocusOut|Triggered when focus leaves a form field.| -|FormFieldMouseEnter|Triggered when the mouse hovers over a form field.| -|FormFieldMouseLeave|Triggered when the mouse leaves a form field.| -|FormFieldPropertyChanged|Triggered when a form field's properties are modified.| -|FormFieldResized|Triggered when a form field is resized.| -|FormFieldSelected|Triggered when a form field is selected.| -|FormFieldsExported|Triggered when form fields are successfully exported.| -|FormFieldsExportFailed |Triggered when form fields export operation fails.| -|FormFieldsExporting|Triggered before form fields are exported, allowing customization of the export process.| -|FormFieldsImported|Triggered when form fields are successfully imported.| -|FormFieldsImportFailed |Triggered when form fields import operation fails.| -|FormFieldsImporting|Triggered before form fields are imported, allowing validation or modifications.| -|FormFieldUnselected|Triggered when a form field is unselected.| -|ImportFailed|Triggers when importing annotations fails in the PDF document.| -|ImportStarted|Triggers when importing annotations starts in the PDF document.| -|ImportSucceed|Triggers when importing annotations succeeds in the PDF document.| -|IsDesignerModeChanged|Triggered when the designer mode state changes in the PDF Viewer.| -|MoveSignature|Triggers when a signature is moved on a page in the PDF document.| -|OnAnnotationDoubleClick|Triggers when an annotation is double-clicked.| -|OnHyperlinkClick|Triggers when a hyperlink in the PDF document is clicked.| -|OnHyperlinkMouseOver|Triggers when a hyperlink in the PDF document is hovered.| -|OnPageClick|Triggers when a mouse click is performed on a page in the PDF document.| -|OnTextSearchComplete|Triggers when a text search is completed.| -|OnTextSearchHighlight|Triggers when searched text is highlighted.| -|OnTextSearchStart|Triggers when a text search starts.| -|OnTextSelectionEnd|Triggers when text selection ends.| -|OnTextSelectionStart|Triggers when text selection starts.| -|OnThumbnailClick|Triggers when a thumbnail is clicked in the thumbnail panel of the SfPdfViewer.| -|PageChanged|Triggers when the current page number changes.| -|PageMouseover|Triggers when the mouse pointer moves over a page.| -|PrintEnd|Triggers when a print action is completed.| -|PrintStart|Triggers when a print action starts.| -|RemoveSignature|Triggers when a signature is removed from a page in the PDF document.| -|ResizeSignature|Triggers when a signature is resized on a page in the PDF document.| -|SignaturePropertiesChange|Triggers when the properties of a signature are changed on a page in the PDF document.| -|SignatureSelected|Triggers when a signature is selected on a page in the PDF document.| -|SignatureUnselected|Triggers when a signature is unselected on a page in the PDF document.| -|ToolbarClicked|Triggers an event when a Custom Toolbar Item is clicked in the Toolbar.| -|ValidateFormFields|Triggered when form fields are validated.| -|ZoomChanged|Triggers when the magnification value changes.| +|[AddSignature](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AddSignature)|Triggers when a signature is added to a page in the PDF document.| +|[AnnotationAdded](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationAdded)|Triggers when an annotation is added to a page in the PDF document.| +|[AnnotationMouseover](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationMouseover)|Triggers when the mouse pointer moves over an annotation object.| +|[AnnotationMoved](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationMoved)|Triggers when an annotation is moved on a page in the PDF document.| +|[AnnotationPropertiesChanged](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationPropertiesChanged)|Triggers when annotation properties are modified on a PDF page.| +|[AnnotationRemoved](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationRemoved)|Triggers when an annotation is removed from a page in the PDF document.| +|[AnnotationResized](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationResized)|Triggers when an annotation is resized on a page in the PDF document.| +|[AnnotationSelected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationSelected)|Triggers when an annotation is selected on a page in the PDF document.| +|[AnnotationUnselected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_AnnotationUnselected)|Triggers when an annotation is unselected on a page in the PDF document.| +|[CommandExecuted](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_CommandExecuted)|Triggers when the designated command is invoked.| +|[Created](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_Created)|Triggers when the PDF Viewer component is created.| +|[DocumentEdited](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_DocumentEdited)|Triggers when the PDF document is edited in the SfPdfViewer.| +|[DocumentLoaded](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_DocumentLoaded)|Triggers when a document is loaded into the PDF Viewer.| +|[DocumentLoadFailed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_DocumentLoadFailed)|Triggers when loading a document into the PDF Viewer fails.| +|[DcoumentUnloaded](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_DocumentUnloaded)|Triggers when the document is closed.| +|[DownloadEnd](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_DownloadEnd)|Triggers when a download action is completed.| +|[DownloadStart](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_DownloadStart)|Triggers when a download action starts.| +|[ExportFailed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ExportFailed)|Triggers when exporting annotations fails in the SfPdfViewer.| +|[ExportStarted](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ExportStarted)|Triggers when exporting annotations starts in the SfPdfViewer.| +|[ExportSucceed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ExportSucceed)|Triggers when exporting annotations succeeds in the SfPdfViewer.| +|[ExtractTextCompleted](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ExtractTextCompleted)|Triggers when text extraction is completed in the SfPdfViewer.| +|[FormFieldAdded](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldAdded)|Triggered when a form field is added to the PDF document.| +|[FormFieldAdding](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldAdding)|Triggered before a new form field is added, allowing validation before insertion.| +|[FormFieldClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldClick)|Triggered when a user clicks on a form field while designer mode is off.| +|[FormFieldDeleted](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldDeleted)|Triggered when a form field is removed from the document.| +|[FormFieldDoubleClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldDoubleClick)|Triggered when a form field is double-clicked.| +|[FormFieldFocusIn](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldFocusIn)|Triggered when focus enters a form field.| +|[FormFieldFocusOut](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldFocusOut)|Triggered when focus leaves a form field.| +|[FormFieldMouseEnter](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldMouseEnter)|Triggered when the mouse hovers over a form field.| +|[FormFieldMouseLeave](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldMouseLeave)|Triggered when the mouse leaves a form field.| +|[FormFieldPropertyChanged](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldPropertyChanged)|Triggered when a form field's properties are modified.| +|[FormFieldResized](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldResized)|Triggered when a form field is resized.| +|[FormFieldSelected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldSelected)|Triggered when a form field is selected.| +|[FormFieldsExported](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldsExported)|Triggered when form fields are successfully exported.| +|[FormFieldsExportFailed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldsExportFailed)|Triggered when form fields export operation fails.| +|[FormFieldsExporting](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldsExporting)|Triggered before form fields are exported, allowing customization of the export process.| +|[FormFieldsImported](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldsImported)|Triggered when form fields are successfully imported.| +|[FormFieldsImportFailed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldsImportFailed)|Triggered when form fields import operation fails.| +|[FormFieldsImporting](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldsImporting)|Triggered before form fields are imported, allowing validation or modifications.| +|[FormFieldUnselected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_FormFieldUnselected)|Triggered when a form field is unselected.| +|[ImportFailed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ImportFailed)|Triggers when importing annotations fails in the PDF document.| +|[ImportStarted](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ImportStarted)|Triggers when importing annotations starts in the PDF document.| +|[ImportSucceed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ImportSucceed)|Triggers when importing annotations succeeds in the PDF document.| +|[MoveSignature](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_MoveSignature)|Triggers when a signature is moved on a page in the PDF document.| +|[OnAnnotationDoubleClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnAnnotationDoubleClick)|Triggers when an annotation is double-clicked.| +|[OnHyperlinkClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnHyperlinkClick)|Triggers when a hyperlink in the PDF document is clicked.| +|[OnHyperlinkMouseOver](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnHyperlinkMouseOver)|Triggers when a hyperlink in the PDF document is hovered.| +|[OnPageClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnPageClick)|Triggers when a mouse click is performed on a page in the PDF document.| +|[OnTextSearchComplete](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnTextSearchComplete)|Triggers when a text search is completed.| +|[OnTextSearchHighlight](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnTextSearchHighlight)|Triggers when searched text is highlighted.| +|[OnTextSearchStart](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnTextSearchStart)|Triggers when a text search starts.| +|[OnTextSelectionEnd](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnTextSelectionEnd)|Triggers when text selection ends.| +|[OnTextSelectionStart](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnTextSelectionStart)|Triggers when text selection starts.| +|[OnThumbnailClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnThumbnailClick)|Triggers when a thumbnail is clicked in the thumbnail panel of the SfPdfViewer.| +|[PageChanged](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_PageChanged)|Triggers when the current page number changes.| +|[PageMouseover](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_PageMouseover)|Triggers when the mouse pointer moves over a page.| +|[PrintEnd](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_PrintEnd)|Triggers when a print action is completed.| +|[PrintStart](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_PrintStart)|Triggers when a print action starts.| +|[RemoveSignature](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_RemoveSignature)|Triggers when a signature is removed from a page in the PDF document.| +|[ResizeSignature](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ResizeSignature)|Triggers when a signature is resized on a page in the PDF document.| +|[SignaturePropertiesChange](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_SignaturePropertiesChange)|Triggers when the properties of a signature are changed on a page in the PDF document.| +|[SignatureSelected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_SignatureSelected)|Triggers when a signature is selected on a page in the PDF document.| +|[SignatureUnselected](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_SignatureUnselected)|Triggers when a signature is unselected on a page in the PDF document.| +|[ToolbarClicked](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ToolbarClicked)|Triggers an event when a Custom Toolbar Item is clicked in the Toolbar.| +|[ValidateFormFields](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ValidateFormFields)|Triggered when form fields are validated.| +|[ZoomChanged](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_ZoomChanged)|Triggers when the magnification value changes.| ## Adding SfPdfViewer events to Blazor component @@ -159,4 +159,9 @@ The following example illustrates how to handle the DocumentEdited event. In thi ``` -[View sample in GitHub](https://github.com/SyncfusionExamples/blazor-pdf-viewer-examples/tree/master/Load%20and%20Save/Load%20a%20PDF%20document%20using%20created%20event) \ No newline at end of file +[View sample in GitHub](https://github.com/SyncfusionExamples/blazor-pdf-viewer-examples/tree/master/Load%20and%20Save/Load%20a%20PDF%20document%20using%20created%20event) + +## See Also + +* [Annotation Events in Blazor PDF Viewer](./annotation/events) +* [Form Designer Events in Blazor PDF Viewer](./form-designer/events) \ No newline at end of file