Skip to content

Commit 953b2b4

Browse files
Merge pull request #1969 from Syncfusion-Content/development
DOCINFRA-2341_merged_using_automation
2 parents ee7611b + a57baee commit 953b2b4

File tree

12 files changed

+519
-2
lines changed

12 files changed

+519
-2
lines changed

Document-Processing-toc.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,7 @@
15941594
<li><a href="/document-processing/pdf/pdf-viewer/maui/Magnification">Magnification</a></li>
15951595
<li><a href="/document-processing/pdf/pdf-viewer/maui/Text-Search">Text Search</a></li>
15961596
<li><a href="/document-processing/pdf/pdf-viewer/maui/Text-Selection">Text Selection</a></li>
1597+
<li><a href="/document-processing/pdf/pdf-viewer/maui/Redaction">Redaction</a></li>
15971598
<li><a href="/document-processing/pdf/pdf-viewer/maui/Form-Filling">Form Filling</a></li>
15981599
<li>
15991600
<a href="/document-processing/pdf/pdf-viewer/maui/Annotations-Overview">Annotations</a>
@@ -1605,6 +1606,7 @@
16051606
<li><a href="/document-processing/pdf/pdf-viewer/maui/Import-Export-Annotations">Import and Export</a></li>
16061607
<li><a href="/document-processing/pdf/pdf-viewer/maui/Undo-Redo">Undo and Redo</a></li>
16071608
<li><a href="/document-processing/pdf/pdf-viewer/maui/Show-Hide">Show and Hide</a></li>
1609+
<li><a href="/document-processing/pdf/pdf-viewer/maui/Annotations-Comment">Annotation Comments</a></li>
16081610
<li>
16091611
Types
16101612
<ul>
@@ -1627,6 +1629,7 @@
16271629
<li><a href="/document-processing/pdf/pdf-viewer/maui/Right-To-Left">Right to Left</a></li>
16281630
<li><a href="/document-processing/pdf/pdf-viewer/maui/Keyboard-Shortcuts">Keyboard Shortcuts</a></li>
16291631
<li><a href="/document-processing/pdf/pdf-viewer/maui/Gesture-Events">Gesture Events</a></li>
1632+
<li><a href="/document-processing/pdf/pdf-viewer/maui/liquid-glass-effect">Liquid Glass UI</a></li>
16301633
</ul>
16311634
</li>
16321635
<li>
@@ -5609,6 +5612,9 @@
56095612
<li>
56105613
<a href="/document-processing/excel/excel-library/net/Linux">Linux</a>
56115614
</li>
5615+
<li>
5616+
<a href="/document-processing/excel/excel-library/net/Memory-Usage-Metrics">Memory Usage Metrics</a>
5617+
</li>
56125618
<li>
56135619
<a href="/document-processing/excel/excel-library/net/faq">FAQ</a>
56145620
<ul>
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
---
2+
title: Memory (RAM) Usage Metrics for Syncfusion Excel (XlsIO) Library
3+
description: This section provides benchmark results showing the peak RAM usage of the Syncfusion Excel (XlsIO) library across various operations.
4+
platform: document-processing
5+
control: XlsIO
6+
documentation: UG
7+
---
8+
9+
# Memory Usage Metrics in Excel (XlsIO) Library
10+
11+
This section reports the peak memory usage (RAM) observed when handling text, date and time, number, boolean, and formula data types during Create & Save and Load & Read operations.
12+
13+
## Test Environment
14+
15+
* **OS:** Windows 11
16+
* **Processor:** AMD Ryzen 5 7520U with Radeon Graphics (2.80 GHz)
17+
* **Installed RAM:** 16 GB (15.3 GB usable)
18+
* **System type:** 64-bit OS, x64 processor
19+
20+
## Create and Save
21+
22+
The table below shows the peak memory usage (RAM) while creating and saving an Excel document containing 100,000 rows and 50 columns for different data types.
23+
24+
<table>
25+
<tr>
26+
<th>Data type</th>
27+
<th>Peak memory usage (RAM)</th>
28+
<th>Sample link</th>
29+
</tr>
30+
<tr>
31+
<td>Text</td>
32+
<td>1.1 GB</td>
33+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Create/String%20Data%20Type/.NET/String%20Data%20Type">GitHub page</a></td>
34+
</tr>
35+
<tr>
36+
<td>DateTime</td>
37+
<td>361 MB</td>
38+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Create/DateTime%20Data%20Type/.NET/DateTime%20Data%20Type">GitHub page</a></td>
39+
</tr>
40+
<tr>
41+
<td>Number</td>
42+
<td>342 MB</td>
43+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Create/Number%20Data%20Type/.NET/Number%20Data%20Type">GitHub page</a></td>
44+
</tr>
45+
<tr>
46+
<td>Boolean</td>
47+
<td>342 MB</td>
48+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Create/Boolean%20Data%20Type/.NET/Boolean%20Data%20Type">GitHub page</a></td>
49+
</tr>
50+
<tr>
51+
<td>Formula</td>
52+
<td>848 MB</td>
53+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Create/Formula%20Data%20Type/.NET/Formula%20Data%20Type">GitHub page</a></td>
54+
</tr>
55+
</table>
56+
57+
## Load and Read
58+
59+
The table below shows the peak memory usage (RAM) while loading and reading cell values from an Excel document with 100,000 rows and 50 columns for different data types.
60+
61+
<table>
62+
<tr>
63+
<th>Data type</th>
64+
<th>Peak memory usage (RAM)</th>
65+
<th>Sample link</th>
66+
</tr>
67+
<tr>
68+
<td>Text</td>
69+
<td>945 MB</td>
70+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/String%20Data%20Type/.NET/String%20Data%20Type">GitHub page</a></td>
71+
</tr>
72+
<tr>
73+
<td>DateTime</td>
74+
<td>289 MB</td>
75+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/DateTime%20Data%20Type/.NET/DateTime%20Data%20Type">GitHub page</a></td>
76+
</tr>
77+
<tr>
78+
<td>Number</td>
79+
<td>290 MB</td>
80+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/Number%20Data%20Type/.NET/Number%20Data%20Type">GitHub page</a></td>
81+
</tr>
82+
<tr>
83+
<td>Boolean</td>
84+
<td>185 MB</td>
85+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/Boolean%20Data%20Type/.NET/Boolean%20Data%20Type">GitHub page</a></td>
86+
</tr>
87+
<tr>
88+
<td>Formula</td>
89+
<td>520 MB</td>
90+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/Formula%20Data%20Type/.NET/Formula%20Data%20Type">GitHub page</a></td>
91+
</tr>
92+
</table>

Document-Processing/PDF/PDF-Viewer/maui/Annotation-Collection.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,25 @@ private void OnDocumentLoaded(object sender, EventArgs e)
3939
}
4040
}
4141
{% endhighlight %}
42-
{% endtabs %}
42+
{% endtabs %}
43+
44+
## AnnotationsLoaded event
45+
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.
46+
The following example explains how to wire and handle the event.
47+
48+
{% tabs %}
49+
{% highlight c# %}
50+
51+
void WireAnnotationsLoadedEvent()
52+
{
53+
// Wire the annotations loaded event of [SfPdfViewer](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.SfPdfViewer.html).
54+
pdfViewer.AnnotationsLoaded += OnAnnotationsLoaded;
55+
}
56+
57+
private void OnAnnotationsLoaded(object? sender, EventArgs e)
58+
{
59+
Debug.WriteLine("All annotations have been loaded.");
60+
}
61+
62+
{% endhighlight %}
63+
{% endtabs %}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
layout: post
3+
title: Comments in .NET MAUI PDF Viewer | Syncfusion
4+
description: Learn here all about how to add comments or replies to annotations in Syncfusion<sup>®</sup> .NET MAUI PDF Viewer (SfPdfViewer) control.
5+
platform: document-processing
6+
control: SfPdfViewer
7+
documentation: ug
8+
keywords: .net maui pdf viewer, .net maui view pdf, pdf viewer in .net maui, .net maui open pdf, maui pdf viewer, maui pdf view
9+
---
10+
11+
# Comments in .NET MAUI PDF Viewer (SfPdfViewer)
12+
The PDF Viewer control provides options to add, edit, and delete comments for the following annotations in PDF documents:
13+
1. Ink annotation
14+
2. Shape annotation
15+
3. Stamp annotation
16+
4. Sticky note annotation
17+
5. Text markup annotation
18+
6. Free text annotation
19+
7. Signature annotation
20+
21+
## Showing/Hiding the Comment panel
22+
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.
23+
{% tabs %}
24+
{% highlight c# %}
25+
26+
// Show the comment panel in the PDF Viewer
27+
PdfViewer.IsCommentsPanelVisible = true;
28+
29+
{% endhighlight %}
30+
{% endtabs %}
31+
32+
{% tabs %}
33+
{% highlight XAML %}
34+
35+
<syncfusion:SfPdfViewer x:Name="PdfViewer" IsCommentsPanelVisible = "True" >
36+
</syncfusion:SfPdfViewer>
37+
38+
{% endhighlight %}
39+
{% endtabs %}
40+
41+
42+
## Comment panel
43+
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. The comment panel displays all annotations in the document along with their comments and replies, allowing you to add comments to any annotation and reply to existing comments or annotations.
44+
The following image represents how to add the comments using the toolbar on the desktop.
45+
46+
![Annotations comments Built-in toolbar](Images/Annotations/desktop-comment.gif)
47+
48+
The following image represents how to add comments using the toolbar on mobile.
49+
50+
![Annotations comments Built-in toolbar](Images/Annotations/mobile-comment.gif)
51+
52+
## Adding comments or replies
53+
Follow these steps to add comments or replies :
54+
1. Select the annotation in the PDF document and open the comment panel.
55+
2. The corresponding comment thread is highlighted in the comment panel.
56+
3. Add comments and replies using the comment panel.
57+
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.
58+
5. Multiple replies can be added to a comment.
59+
60+
## Add comments or replies programmatically
61+
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.
62+
The following example explains how to add comments or replies to specific annotations in the PDF document.
63+
64+
{% tabs %}
65+
{% highlight c# %}
66+
67+
ReadOnlyObservableCollection<Annotation> annotations = pdfViewer.Annotations;
68+
Annotation annotation = annotations[0];
69+
Comment comment = new Comment()
70+
{
71+
Text = "First Annotations",
72+
Author="User Name",
73+
ModifiedDate= DateTime.Now,
74+
};
75+
annotation.Comments.Add(comment);
76+
77+
{% endhighlight %}
78+
{% endtabs %}
79+
80+
## Editing the comments and comments replies of the annotations
81+
Comments and replies can be edited through the context menu available under the More Options in the Comment Panel. Follow the steps below:
82+
Select the annotation comment in the comment panel.
83+
84+
1. Click More options in the comment or reply to container.
85+
2. Select Edit from the context menu.
86+
3. An editable text box appears. Change the content of the comment or reply.
87+
88+
## Delete Comment or Comment Replies
89+
Comments and replies can be deleted through the context menu available under the More Options in the Comment Panel. Follow the steps below:
90+
1. Select the annotation comment in the comment panel.
91+
2. Click More options in the comment or reply to container.
92+
3. Select Delete from the context menu.
93+
94+
**Note :** Deleting the root comment from the comment panel also deletes the associated annotation.
497 KB
Loading
452 KB
Loading
196 KB
Loading
321 KB
Loading

0 commit comments

Comments
 (0)