-
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
33
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
33 commits
Select commit
Hold shift + click to select a range
9b4b468
Added UG for liquid glass effect
KSilambharasanSF4548 42bdd89
Added annotation loaded comment UG
KSilambharasanSF4548 4732b76
added annotations comment UG
KSilambharasanSF4548 1ddbea0
removed unwanted changes
KSilambharasanSF4548 ad28600
Update comment formatting in Annotations-Comment
KSilambharasanSF4548 73d8cdd
updated annotations comments
KSilambharasanSF4548 3034250
Modify description for annotations comments feature
KSilambharasanSF4548 6e0f580
Removed unwanted changes
KSilambharasanSF4548 e3dcb91
annotations comments images
KSilambharasanSF4548 44951c6
added images for annotations comments
KSilambharasanSF4548 4450dad
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/des…
KSilambharasanSF4548 23367ec
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/Mob…
KSilambharasanSF4548 13d59cd
added comments images for desktop and mobile
KSilambharasanSF4548 e6898df
Added images for liquid glass
KSilambharasanSF4548 58c76f9
added liquid glass
KSilambharasanSF4548 ca536a0
Add images for Liquid glass effect on desktop and mobile
KSilambharasanSF4548 57d8e23
Replace static images with GIFs in annotations
KSilambharasanSF4548 6e7f125
Rename desktp-comment.gif to desktop-comment.gif
KSilambharasanSF4548 2394626
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/des…
KSilambharasanSF4548 2c9f8f2
added image
KSilambharasanSF4548 0769c86
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/des…
KSilambharasanSF4548 45d7cb7
added comment panel image
KSilambharasanSF4548 f4760b4
Delete Document-Processing/PDF/PDF-Viewer/maui/Liquid-Glass-Effect.md
KSilambharasanSF4548 6f452b0
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/desktop-liquidg…
KSilambharasanSF4548 74395bf
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/mobile-liquidgl…
KSilambharasanSF4548 a4b36f8
Refine AnnotationsLoaded event description
KSilambharasanSF4548 ccf20e4
Update debug message for loaded annotations
KSilambharasanSF4548 0a3ee54
Fix punctuation and capitalization in comment panel section
KSilambharasanSF4548 9c8f16f
Add link for Annotation Comments in TOC
KSilambharasanSF4548 c77a0cc
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/des…
KSilambharasanSF4548 ad4ec2a
Delete Document-Processing/PDF/PDF-Viewer/maui/Images/Annotations/mob…
KSilambharasanSF4548 8b5f5ce
Added annotation comments image
KSilambharasanSF4548 908774a
Changes added for annotations comments
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. A comment panel will appear. | ||
| 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. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. | ||
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.
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.