Skip to content

Commit 131b3d9

Browse files
986770: Documentation
1 parent 3908e16 commit 131b3d9

19 files changed

+496
-513
lines changed

Document-Processing/PDF/PDF-Viewer/angular/annotation/comments.md

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
layout: post
33
title: Comments in Angular Pdfviewer component | Syncfusion
4-
description: Learn here all about Comments in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
4+
description: Learn about comments, replies, and status in the Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2.
55
platform: document-processing
66
control: Comments
77
documentation: ug
88
domainurl: ##DomainURL##
99
---
1010

11-
# Comments
11+
# Comments in Angular PDF Viewer control
1212

13-
The PDF Viewer control provides options to add, edit, and delete the comments to the following annotation in the PDF documents:
13+
The PDF Viewer control provides options to add, edit, and delete comments for the following annotations in PDF documents:
1414

1515
* Shape annotation
1616
* Stamp annotation
@@ -20,11 +20,11 @@ The PDF Viewer control provides options to add, edit, and delete the comments to
2020
* Free text annotation
2121
* Ink annotation
2222

23-
![Comments](../images/commentannot.png)
23+
![Comment panel overview](../images/commentannot.png)
2424

2525
## Adding a comment to the annotation
2626

27-
Annotation comment, comment replies, and status can be added to the PDF document using the comment panel.
27+
Annotation comments, replies, and status can be managed in the PDF document using the comment panel.
2828

2929
### Comment panel
3030

@@ -33,87 +33,87 @@ Annotation comments can be added to the PDF using the comment panel. The comment
3333
1. Using the annotation menu
3434

3535
* Click the Edit Annotation button in the PDF Viewer toolbar. A toolbar appears below it.
36-
* Click the Comment Panel button. A comment panel will appear.
36+
* Click the Comment Panel button. The comment panel opens.
3737

3838
2. Using Context menu
3939

40-
* Select annotation in the PDF document and right-click it.
41-
* Select the comment option in the context menu that appears.
40+
* Select the annotation in the PDF document and right-click it.
41+
* Select Comment from the context menu..
4242

4343
3. Using the Mouse click
4444

45-
* Select annotation in the PDF document and double click it, a comment panel will appear.
45+
* Select the annotation in the PDF document and double-click it. The comment panel opens.
4646

47-
If the comment panel is already in the open state, you can select the annotations and add annotation comments using the comment panel.
47+
If the comment panel is already open, select the annotation and add comments using the panel.
4848

4949
### Adding comments
5050

51-
* Select annotation in the PDF document and click it.
52-
* The selected annotation comment container is highlighted in the comment panel.
53-
* Now, you can add comment and comment replies using the comment panel.
51+
* Select the annotation in the PDF document.
52+
* The corresponding comment thread is highlighted in the comment panel.
53+
* Add comments and replies using the comment panel.
5454

55-
![AddingComments](../images/stickycomment.png)
55+
![Adding comments to a sticky note annotation](../images/stickycomment.png)
5656

5757
### Adding Comment Replies
5858

59-
* The PDF Viewer control provides an option to add multiple replies to the comment.
60-
* After adding the annotation comment, you can add a reply to the comment.
59+
* Multiple replies can be added to a comment.
60+
* After adding a comment, add replies as needed.
6161

6262
### Adding Comment or Reply Status
6363

64-
* Select the Annotation Comments in the comment panel.
65-
* Click the more options button showing in the Comments or reply container.
66-
* Select the Set Status option in the context menu that appears.
67-
* Select the status of the annotation comment in the context menu that appears.
64+
* Select the annotation comment in the comment panel.
65+
* Click More options in the comment or reply container.
66+
* Select Set Status from the context menu.
67+
* Choose a status for the comment.
6868

69-
![CommentStatus](../images/commentstatus.png)
69+
![Set status for a comment](../images/commentstatus.png)
7070

7171
### Editing the comments and comments replies of the annotations
7272

73-
The comment, comment replies, and status of the annotation can be edited using the comment panel.
73+
Comments, replies, and status can be edited using the comment panel.
7474

7575
### Editing the Comment or Comment Replies
7676

77-
The annotation comment and comment replies can be edited in the following ways:
77+
Edit comments and replies in the following ways:
7878

7979
1. Using the Context menu
8080

81-
* Select the Annotation Comments in the comment panel.
82-
* Click the More options button showing in the Comments or reply container.
83-
* Select the Edit option in the context menu that appears.
84-
* Now, an editable text box appears. You can change the content of the annotation comment or comment reply.
81+
* Select the annotation comment in the comment panel.
82+
* Click More options in the comment or reply container.
83+
* Select Edit from the context menu.
84+
* An editable text box appears. Change the content of the comment or reply.
8585

8686
2. Using the Mouse Click
8787

88-
* Select the annotation comments in the comment panel.
89-
* Double click the comment or comment reply content.
90-
* Now, an editable text box appears. You can change the content of the annotation comment or comment reply.
88+
* Select the annotation comment in the comment panel.
89+
* Double-click the comment or reply content.
90+
* An editable text box appears. Change the content of the comment or reply.
9191

9292
### Editing Comment or Reply Status
9393

94-
* Select the Annotation Comments in the comment panel.
95-
* Click the more options button showing in the Comments or reply container.
96-
* Select the Set Status option in the context menu that appears.
97-
* Select the status of the annotation comment in the context menu that appears.
98-
* Status ‘None is the default state. If the status is set to ‘None,’ the comments or reply does not appear.
94+
* Select the annotation comment in the comment panel.
95+
* Click More options in the comment or reply container.
96+
* Select Set Status from the context menu.
97+
* Choose a status for the comment.
98+
* None is the default state. Selecting None clears the status indicator; the comment or reply remains visible.
9999

100-
![CommentEdit](../images/commentsedit.png)
100+
![Edit comments and replies](../images/commentsedit.png)
101101

102102
### Delete Comment or Comment Replies
103103

104-
* Select the Annotation Comments in the comment panel.
105-
* Click the more options button shown in the Comments or reply container.
106-
* Select the Delete option in the context menu that appears.
104+
* Select the annotation comment in the comment panel.
105+
* Click More options in the comment or reply container.
106+
* Select Delete from the context menu.
107107

108-
![CommentEdit](../images/commentsdelete.png)
108+
![Delete comments or replies](../images/commentsdelete.png)
109109

110-
>The annotation will be deleted on deleting the comment using comment panel.
110+
>Deleting the root comment from the comment panel also deletes the associated annotation.
111111
112112
## How to check the comments added by the user
113113

114-
The comments added to the PDF document can be viewed by using the `comments` property of the annotation.
114+
Comments added to the PDF document can be read using the annotation's `comments` property.
115115

116-
Refer to the following code to check the comments added in the PDF document using a button click event.
116+
The following example logs comments in response to a button click.
117117

118118
{% tabs %}
119119
{% highlight html tabtitle="Standalone" %}

Document-Processing/PDF/PDF-Viewer/angular/annotation/free-text-annotation.md

Lines changed: 49 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
---
22
layout: post
33
title: Free text annotation in Angular Pdfviewer component | Syncfusion
4-
description: Learn here all about Free text annotation in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
4+
description: Learn about free text annotations in the Syncfusion Angular PDF Viewer (Essential JS 2): add, edit, delete, and default settings.
55
platform: document-processing
66
control: Free text annotation
77
documentation: ug
88
domainurl: ##DomainURL##
99
---
1010

11-
# Free text annotation
11+
# Free text annotation in Angular PDF Viewer control
1212

13-
The PDF Viewer control provides the options to add, edit, and delete the free text annotations.
13+
The PDF Viewer control provides options to add, edit, and delete free text annotations.
1414

15-
## Adding a free text annotation to the PDF document
15+
## Add a free text annotation to the PDF document
1616

17-
The Free text annotations can be added to the PDF document using the annotation toolbar.
17+
Free text annotations can be added to the PDF document using the annotation toolbar.
1818

19-
* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
20-
* Select the **Free Text Annotation** button in the annotation toolbar. It enables the Free Text annotation mode.
21-
* You can add the text over the pages of the PDF document.
19+
* Click the **Edit Annotation** button in the PDF Viewer toolbar. The annotation toolbar appears below it.
20+
* Select the **Free Text Annotation** button to enable free text annotation mode.
21+
* Add text anywhere on the pages of the PDF document.
2222

23-
In the pan mode, if the free text annotation mode is entered, the PDF Viewer control will switch to text select mode.
23+
When in pan mode, selecting free text annotation switches the PDF Viewer to text select mode.
2424

25-
![FreeTextAnnotation in Angular PDF Viewer](../images/freetext_tool.png)
25+
![Free text tool in the annotation toolbar](../images/freetext_tool.png)
2626

27-
Refer to the following code sample to switch to the Free Text annotation mode using a button click.
27+
The following example switches to free text annotation mode using a button click.
2828

2929
{% tabs %}
3030
{% highlight ts tabtitle="Standalone" %}
@@ -147,11 +147,11 @@ RemoveSelection() {
147147

148148
[View sample in GitHub](https://github.com/SyncfusionExamples/angular-pdf-viewer-examples/tree/master/Annotations/How%20to%20clear%20the%20selection%20from%20annotation)
149149

150-
## Adding a Free Text annotation to the PDF document Programmatically
150+
## Add a free text annotation programmatically to the PDF document
151151

152-
With the PDF Viewer library, you can add a Free Text annotation to the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
152+
The PDF Viewer library allows adding a free text annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method
153153

154-
Here's a example of how you can utilize the **addAnnotation()** method to include a Free Text annotation programmatically
154+
Here is an example of adding a free text annotation programmatically using addAnnotation():
155155

156156
{% tabs %}
157157
{% highlight ts tabtitle="Standalone" %}
@@ -262,63 +262,63 @@ export class AppComponent implements OnInit {
262262
{% endhighlight %}
263263
{% endtabs %}
264264

265-
## Editing the properties of free text annotation
265+
## Edit the properties of free text annotations
266266

267-
The font family, font size, font styles, font color, text alignment, fill color, the border stroke color, border thickness, and opacity of the free text annotation can be edited using the Font Family tool, Font Size tool, Font Color tool, Text Align tool, Font Style tool Edit Color tool, Edit Stroke Color tool, Edit Thickness tool, and Edit Opacity tool in the annotation toolbar.
267+
Font family, font size, styles, font color, text alignment, fill color, stroke color, border thickness, and opacity can be edited using the Font Family, Font Size, Font Color, Text Align, Font Style, Edit Color, Edit Stroke Color, Edit Thickness, and Edit Opacity tools in the annotation toolbar.
268268

269-
### Editing font family
269+
### Edit font family
270270

271-
The font family of the annotation can be edited by selecting the desired font in the Font Family tool.
271+
Edit the font family by selecting a font in the Font Family tool.
272272

273-
![FontFamily](../images/fontfamily.png)
273+
![Change font family](../images/fontfamily.png)
274274

275-
### Editing font size
275+
### Edit font size
276276

277-
The font size of the annotation can be edited by selecting the desired size in the Font Size tool.
277+
Edit the font size by selecting a size in the Font Size tool.
278278

279-
![FontSize](../images/fontsize.png)
279+
![Change font size](../images/fontsize.png)
280280

281-
### Editing font color
281+
### Edit font color
282282

283-
The font color of the annotation can be edited using the color palette provided in the Font Color tool.
283+
Edit the font color using the color palette in the Font Color tool.
284284

285-
![FontColor](../images/fontcolor.png)
285+
![Change font color](../images/fontcolor.png)
286286

287-
### Editing the text alignment
287+
### Edit the text alignment
288288

289-
The text in the annotation can be aligned by selecting the desired styles in the drop-down pop-up in the Text Align tool.
289+
Align text by selecting an option from the Text Align tool..
290290

291-
![FreeTextAnnotation](../images/textalign.png)
291+
![Set text alignment](../images/textalign.png)
292292

293-
### Editing text styles
293+
### Edit text styles
294294

295-
The style of the text in the annotation can be edited by selecting the desired styles in the drop-down pop-up in the Font Style tool.
295+
Edit text styles by selecting options in the Font Style tool.
296296

297-
![FontStyle](../images/fontstyle.png)
297+
![Change text styles](../images/fontstyle.png)
298298

299-
### Editing fill color
299+
### Edit fill color
300300

301-
The fill color of the annotation can be edited using the color palette provided in the Edit Color tool.
301+
Edit the fill color using the color palette in the Edit Color tool.
302302

303-
![FillColor](../images/fillcolor.png)
303+
![Change fill color](../images/fillcolor.png)
304304

305-
### Editing stroke color
305+
### Edit stroke color
306306

307-
The stroke color of the annotation can be edited using the color palette provided in the Edit Stroke Color tool.
307+
Edit the stroke color using the color palette in the Edit Stroke Color tool.
308308

309-
![StrokeColor](../images/fontstroke.png)
309+
![change stroke color](../images/fontstroke.png)
310310

311-
### Editing thickness
311+
### Edit thickness
312312

313-
The border thickness of the annotation can be edited using the range slider provided in the Edit Thickness tool.
313+
Edit border thickness using the range slider in the Edit Thickness tool.
314314

315315
![FontThickness](../images/fontthickness.png)
316316

317-
### Editing opacity
317+
### Edit opacity
318318

319-
The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.
319+
Edit border thickness using the range slider in the Edit Thickness tool.
320320

321-
![FontOpacity](../images/fontopacity.png)
321+
![Change opacity](../images/fontopacity.png)
322322

323323
## Move the free text annotation programmatically
324324

@@ -367,11 +367,11 @@ public annotationAddEventHandler(args) {
367367

368368
Find the sample [how to get the newly added free text annotation id](https://stackblitz.com/edit/angular-dxub1a-utuefq?file=app.component.ts)
369369

370-
## Change the content of an existing Free text annotation programmatically
370+
## Change the content of an existing free text annotation programmatically
371371

372-
To change the content of an existing free text annotation in the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF viewer programmatically, you can use the **editAnnotation()** method.
372+
To change the content of an existing free text annotation programmatically, use the editAnnotation() method.
373373

374-
Here is an example of how you can use the **editAnnotation()** method to change the content of a free text annotation:
374+
Here is an example of changing the content of a free text annotation using editAnnotation():
375375

376376
```html
377377
<button (click)="changeContent()">Change Contect</button>
@@ -391,14 +391,13 @@ changeContent() {
391391

392392
```
393393

394-
Find the sample [how to change the content of an existing free text annotation programmatically](https://stackblitz.com/edit/angular-dxub1a-krsywy?file=app.component.ts)
394+
N> The current version of the PDF Viewer does not edit existing document text. New free text annotations can be added and modified within the document.
395395

396-
## Setting default properties during control initialization
396+
## Set default properties during control initialization
397397

398-
The properties of the free text annotation can be set before creating the control using the FreeTextSettings.
398+
Default properties for free text annotations can be set before creating the control using FreeTextSettings.
399399

400-
After editing the default values, they will be changed to the selected values.
401-
Refer to the following code sample to set the default free text annotation settings.
400+
After changing default values, the selected values are applied. The following example sets default free text annotation settings.
402401

403402
{% tabs %}
404403
{% highlight ts tabtitle="Standalone" %}

0 commit comments

Comments
 (0)