You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/angular/annotation/free-text-annotation.md
+49-50Lines changed: 49 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,30 @@
1
1
---
2
2
layout: post
3
3
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 2and more.
4
+
description: Learn about free text annotations in the Syncfusion Angular PDF Viewer (Essential JS 2): add, edit, delete, and default settings.
5
5
platform: document-processing
6
6
control: Free text annotation
7
7
documentation: ug
8
8
domainurl: ##DomainURL##
9
9
---
10
10
11
-
# Free text annotation
11
+
# Free text annotation in Angular PDF Viewer control
12
12
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.
14
14
15
-
## Adding a free text annotation to the PDF document
15
+
## Add a free text annotation to the PDF document
16
16
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.
18
18
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.
22
22
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.
24
24
25
-

25
+

26
26
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.
28
28
29
29
{% tabs %}
30
30
{% highlight ts tabtitle="Standalone" %}
@@ -147,11 +147,11 @@ RemoveSelection() {
147
147
148
148
[View sample in GitHub](https://github.com/SyncfusionExamples/angular-pdf-viewer-examples/tree/master/Annotations/How%20to%20clear%20the%20selection%20from%20annotation)
149
149
150
-
## Adding a Free Text annotation to the PDF document Programmatically
150
+
## Add a free text annotation programmatically to the PDF document
151
151
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
153
153
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():
155
155
156
156
{% tabs %}
157
157
{% highlight ts tabtitle="Standalone" %}
@@ -262,63 +262,63 @@ export class AppComponent implements OnInit {
262
262
{% endhighlight %}
263
263
{% endtabs %}
264
264
265
-
## Editing the properties of free text annotation
265
+
## Edit the properties of free text annotations
266
266
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.
268
268
269
-
### Editing font family
269
+
### Edit font family
270
270
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.
272
272
273
-

273
+

274
274
275
-
### Editing font size
275
+
### Edit font size
276
276
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.
278
278
279
-

279
+

280
280
281
-
### Editing font color
281
+
### Edit font color
282
282
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.
284
284
285
-

285
+

286
286
287
-
### Editing the text alignment
287
+
### Edit the text alignment
288
288
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..
290
290
291
-

291
+

292
292
293
-
### Editing text styles
293
+
### Edit text styles
294
294
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.
296
296
297
-

297
+

298
298
299
-
### Editing fill color
299
+
### Edit fill color
300
300
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.
302
302
303
-

303
+

304
304
305
-
### Editing stroke color
305
+
### Edit stroke color
306
306
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.
308
308
309
-

309
+

310
310
311
-
### Editing thickness
311
+
### Edit thickness
312
312
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.
314
314
315
315

316
316
317
-
### Editing opacity
317
+
### Edit opacity
318
318
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.
320
320
321
-

321
+

322
322
323
323
## Move the free text annotation programmatically
324
324
@@ -367,11 +367,11 @@ public annotationAddEventHandler(args) {
367
367
368
368
Find the sample [how to get the newly added free text annotation id](https://stackblitz.com/edit/angular-dxub1a-utuefq?file=app.component.ts)
369
369
370
-
## Change the content of an existing Free text annotation programmatically
370
+
## Change the content of an existing free text annotation programmatically
371
371
372
-
To change the content of an existing free text annotation in the Syncfusion<supstyle="font-size:70%">®</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.
373
373
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():
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.
395
395
396
-
## Setting default properties during control initialization
396
+
## Set default properties during control initialization
397
397
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.
399
399
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.
0 commit comments