-
Notifications
You must be signed in to change notification settings - Fork 10
Added UG for AnnotationLoaded Event and Annotations comment for .NET MAUI PDFViewer #1941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
KSilambharasanSF4548
wants to merge
34
commits into
development
Choose a base branch
from
Maui-Pdf
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+117
−1
Open
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
7a3c9a3
Added UG for liquid glass effect
KSilambharasanSF4548 2c46a94
Added annotation loaded comment UG
KSilambharasanSF4548 952b041
added annotations comment UG
KSilambharasanSF4548 d39d210
removed unwanted changes
KSilambharasanSF4548 22d90d7
Update comment formatting in Annotations-Comment
KSilambharasanSF4548 d1bca1f
updated annotations comments
KSilambharasanSF4548 735cd03
Modify description for annotations comments feature
KSilambharasanSF4548 0f7ab4a
Removed unwanted changes
KSilambharasanSF4548 fa150f8
annotations comments images
KSilambharasanSF4548 0acc73a
added images for annotations comments
KSilambharasanSF4548 cc8f45f
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/des…
KSilambharasanSF4548 53be2f6
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/Mob…
KSilambharasanSF4548 1b51faf
added comments images for desktop and mobile
KSilambharasanSF4548 355bff8
Added images for liquid glass
KSilambharasanSF4548 cecc3f8
added liquid glass
KSilambharasanSF4548 f1ca9bb
Add images for Liquid glass effect on desktop and mobile
KSilambharasanSF4548 8f04f34
Replace static images with GIFs in annotations
KSilambharasanSF4548 7e9e76b
Rename desktp-comment.gif to desktop-comment.gif
KSilambharasanSF4548 413dce9
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/des…
KSilambharasanSF4548 1ca3afc
added image
KSilambharasanSF4548 ab7f49f
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/des…
KSilambharasanSF4548 dbae0af
added comment panel image
KSilambharasanSF4548 e3b977b
Delete Document-Processing/PDF/PDF-Viewer/maui/Liquid-Glass-Effect.md
KSilambharasanSF4548 b2874f5
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/desktop-liquidg…
KSilambharasanSF4548 d883b82
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/mobile-liquidgl…
KSilambharasanSF4548 9589914
Refine AnnotationsLoaded event description
KSilambharasanSF4548 4a954ac
Update debug message for loaded annotations
KSilambharasanSF4548 b5cad52
Fix punctuation and capitalization in comment panel section
KSilambharasanSF4548 2ee2db2
Add link for Annotation Comments in TOC
KSilambharasanSF4548 0c61c2a
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/des…
KSilambharasanSF4548 19f8c89
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/mob…
KSilambharasanSF4548 e4a1386
Added annotation comments image
KSilambharasanSF4548 d4297ef
Changes added for annotations comments
KSilambharasanSF4548 02a2cb4
Enhance comment panel description in documentation
KSilambharasanSF4548 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 94 additions & 0 deletions
94
Document-Processing/PDF/PDF-Viewer/maui/Annotations-Comment.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. 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. | ||
| The following image represents how to add the comments using the toolbar on the desktop. | ||
|
|
||
|  | ||
|
|
||
| The following image represents how to add comments using the toolbar on mobile. | ||
|
|
||
|  | ||
|
|
||
| ## 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. | ||
| 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. | ||
Binary file added
BIN
+497 KB
Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/desktop-comment.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+452 KB
Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/mobile-comment.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added points