Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9b4b468
Added UG for liquid glass effect
KSilambharasanSF4548 Dec 11, 2025
42bdd89
Added annotation loaded comment UG
KSilambharasanSF4548 Dec 11, 2025
4732b76
added annotations comment UG
KSilambharasanSF4548 Dec 11, 2025
1ddbea0
removed unwanted changes
KSilambharasanSF4548 Dec 11, 2025
ad28600
Update comment formatting in Annotations-Comment
KSilambharasanSF4548 Dec 11, 2025
73d8cdd
updated annotations comments
KSilambharasanSF4548 Dec 11, 2025
3034250
Modify description for annotations comments feature
KSilambharasanSF4548 Dec 11, 2025
6e0f580
Removed unwanted changes
KSilambharasanSF4548 Dec 11, 2025
e3dcb91
annotations comments images
KSilambharasanSF4548 Dec 11, 2025
44951c6
added images for annotations comments
KSilambharasanSF4548 Dec 11, 2025
4450dad
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/des…
KSilambharasanSF4548 Dec 12, 2025
23367ec
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/Mob…
KSilambharasanSF4548 Dec 12, 2025
13d59cd
added comments images for desktop and mobile
KSilambharasanSF4548 Dec 12, 2025
e6898df
Added images for liquid glass
KSilambharasanSF4548 Dec 12, 2025
58c76f9
added liquid glass
KSilambharasanSF4548 Dec 12, 2025
ca536a0
Add images for Liquid glass effect on desktop and mobile
KSilambharasanSF4548 Dec 12, 2025
57d8e23
Replace static images with GIFs in annotations
KSilambharasanSF4548 Dec 12, 2025
6e7f125
Rename desktp-comment.gif to desktop-comment.gif
KSilambharasanSF4548 Dec 12, 2025
2394626
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/des…
KSilambharasanSF4548 Dec 12, 2025
2c9f8f2
added image
KSilambharasanSF4548 Dec 12, 2025
0769c86
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/des…
KSilambharasanSF4548 Dec 12, 2025
45d7cb7
added comment panel image
KSilambharasanSF4548 Dec 12, 2025
f4760b4
Delete Document-Processing/PDF/PDF-Viewer/maui/Liquid-Glass-Effect.md
KSilambharasanSF4548 Dec 12, 2025
6f452b0
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/desktop-liquidg…
KSilambharasanSF4548 Dec 12, 2025
74395bf
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/mobile-liquidgl…
KSilambharasanSF4548 Dec 12, 2025
a4b36f8
Refine AnnotationsLoaded event description
KSilambharasanSF4548 Dec 12, 2025
ccf20e4
Update debug message for loaded annotations
KSilambharasanSF4548 Dec 12, 2025
0a3ee54
Fix punctuation and capitalization in comment panel section
KSilambharasanSF4548 Dec 12, 2025
9c8f16f
Add link for Annotation Comments in TOC
KSilambharasanSF4548 Dec 12, 2025
c77a0cc
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/des…
KSilambharasanSF4548 Dec 12, 2025
ad4ec2a
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/mob…
KSilambharasanSF4548 Dec 12, 2025
8b5f5ce
Added annotation comments image
KSilambharasanSF4548 Dec 12, 2025
908774a
Changes added for annotations comments
KSilambharasanSF4548 Dec 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Document-Processing-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,7 @@
<li><a href="/document-processing/pdf/pdf-viewer/maui/Import-Export-Annotations">Import and Export</a></li>
<li><a href="/document-processing/pdf/pdf-viewer/maui/Undo-Redo">Undo and Redo</a></li>
<li><a href="/document-processing/pdf/pdf-viewer/maui/Show-Hide">Show and Hide</a></li>
<li><a href="/document-processing/pdf/pdf-viewer/maui/Annotations-Comment">Annotation Comments</a></li>
<li>
Types
<ul>
Expand Down
23 changes: 22 additions & 1 deletion Document-Processing/PDF/PDF-Viewer/maui/Annotation-Collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,25 @@ private void OnDocumentLoaded(object sender, EventArgs e)
}
}
{% endhighlight %}
{% endtabs %}
{% endtabs %}

## AnnotationsLoaded event
The AnnotationsLoaded event occurs after all annotations in the PDF have finished loading, either when the document is opened or when annotations are imported. You can use this event to perform actions once annotations are fully available in the viewer.
The following example explains how to wire and handle the event.

{% tabs %}
{% highlight c# %}

void WireAnnotationsLoadedEvent()
{
// Wire the annotations loaded event of [SfPdfViewer](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.SfPdfViewer.html).
pdfViewer.AnnotationsLoaded += OnAnnotationsLoaded;
}

private void OnAnnotationsLoaded(object? sender, EventArgs e)
{
Debug.WriteLine("All annotations have been loaded.");
}

{% endhighlight %}
{% endtabs %}
94 changes: 94 additions & 0 deletions Document-Processing/PDF/PDF-Viewer/maui/Annotations-Comment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
---
layout: post
title: Comments in .NET MAUI PDF Viewer | Syncfusion
description: Learn here all about how to add comments or replies to annotations in Syncfusion<sup>®</sup> .NET MAUI PDF Viewer (SfPdfViewer) control.
platform: document-processing
control: SfPdfViewer
documentation: ug
keywords: .net maui pdf viewer, .net maui view pdf, pdf viewer in .net maui, .net maui open pdf, maui pdf viewer, maui pdf view
---

# Comments in .NET MAUI PDF Viewer (SfPdfViewer)
The PDF Viewer control provides options to add, edit, and delete comments for the following annotations in PDF documents:
1. Ink annotation
2. Shape annotation
3. Stamp annotation
4. Sticky note annotation
5. Text markup annotation
6. Free text annotation
7. Signature annotation

## Showing/Hiding the Comment panel
The built-in Comment Panel in the PDF Viewer displays annotation comments. You can show or hide this panel using the IsCommentsPanelVisible property. The default value of this property is false.
{% tabs %}
{% highlight c# %}

// Show the comment panel in the PDF Viewer
PdfViewer.IsCommentsPanelVisible = true;

{% endhighlight %}
{% endtabs %}

{% tabs %}
{% highlight XAML %}

<syncfusion:SfPdfViewer x:Name="PdfViewer" IsCommentsPanelVisible = "True" >
</syncfusion:SfPdfViewer>

{% endhighlight %}
{% endtabs %}


## Comment panel
Annotation comments can be added to the PDF using the comment panel. Comment panel can be opened by using Built-in toolbar, In the toolbar you can see the comments button in the primary toolbar for desktop and top toolbar for mobile. A comment panel will appear.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these lines are not clear it is said that can be opened by using built in toolbare and says buttons are there and it says comment panel will apprear.
Rewrtie it clearly mention when will comment panel appear.

The following image represents how to add the comments using the toolbar on the desktop.

![Annotations comments Built-in toolbar](Images/Annotations/desktop-comment.gif)

The following image represents how to add comments using the toolbar on mobile.

![Annotations comments Built-in toolbar](Images/Annotations/mobile-comment.gif)

## Adding comments or replies
Follow these steps to add comments or replies :
1. Select the annotation in the PDF document and open the comment panel.
2. The corresponding comment thread is highlighted in the comment panel.
3. Add comments and replies using the comment panel.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

points missing like "Addreply button" to simply finished saying Add comments and replies. That is the topic itself. It should answer question How.

4. Using the reply button in the comment panel, you can add a comment directly to a specific annotation, ensuring the discussion stays linked to that annotation.
5. Multiple replies can be added to a comment.

## Add comments or replies programmatically
These can add comments or replies to existing annotations programmatically by accessing the specific annotation from the Annotations collection. This allows you to enhance collaboration and provide feedback directly within the PDF.
The following example explains how to add comments or replies to specific annotations in the PDF document.

{% tabs %}
{% highlight c# %}

ReadOnlyObservableCollection<Annotation> annotations = pdfViewer.Annotations;
Annotation annotation = annotations[0];
Comment comment = new Comment()
{
Text = "First Annotations",
Author="User Name",
ModifiedDate= DateTime.Now,
};
annotation.Comments.Add(comment);

{% endhighlight %}
{% endtabs %}

## Editing the comments and comments replies of the annotations
Comments and replies can be edited through the context menu available under the More Options in the Comment Panel. Follow the steps below:
Select the annotation comment in the comment panel.

1. Click More options in the comment or reply to container.
2. Select Edit from the context menu.
3. An editable text box appears. Change the content of the comment or reply.

## Delete Comment or Comment Replies
Comments and replies can be deleted through the context menu available under the More Options in the Comment Panel. Follow the steps below:
1. Select the annotation comment in the comment panel.
2. Click More options in the comment or reply to container.
3. Select Delete from the context menu.

**Note :** Deleting the root comment from the comment panel also deletes the associated annotation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.