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
## Add a free text annotation programmatically to the PDF document
192
194
193
-
The PDF Viewer library allows adding a free text annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation/#annotation) method.
195
+
The PDF Viewer library allows adding a free text annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation#annotation) method.
194
196
195
197
Here is an example of adding a free text annotation programmatically using addAnnotation():
## Adding a Stamp annotation to the PDF document Programmatically
210
210
211
-
With the PDF Viewer library, you can add a Stamp annotation to the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation/#addannotation) method.
211
+
With the PDF Viewer library, you can add a Stamp annotation to the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation#addannotation) method.
212
212
213
213
Here's a example of how you can utilize the **addAnnotation()** method to include a Stamp annotation programmatically:
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/vue/annotation/sticky-notes-annotation.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Annotation comments can be added using the comment panel.
34
34
35
35
## Add a sticky note annotation to the PDF document programmatically
36
36
37
-
The PDF Viewer library allows adding a sticky note annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation/#addannotation) method.
37
+
The PDF Viewer library allows adding a sticky note annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation#addannotation) method.
38
38
39
39
Here is an example showing how to add a sticky note annotation programmatically using addAnnotation():
40
40
@@ -159,7 +159,7 @@ const addAnnotation = function () {
159
159
</script>
160
160
161
161
{% endhighlight %}
162
-
{% highlight html tabtitle="Server-Backed" %}
162
+
{% highlight html tabtitle="Options API (Server-Backed)" %}
163
163
164
164
<template>
165
165
<divid="app">
@@ -254,7 +254,7 @@ const editAnnotation = function () {
254
254
</script>
255
255
256
256
{% endhighlight %}
257
-
{% highlight html tabtitle="Standalone" %}
257
+
{% highlight html tabtitle="Options API (Standalone)" %}
Programmatically add highlights using the [addAnnotation](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation/#addannotation) method.
398
+
Programmatically add highlights using the [addAnnotation](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation#addannotation) method.
Programmatically add underlines using the [addAnnotation](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation/#addannotation) method.
945
+
Programmatically add underlines using the [addAnnotation](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation#addannotation) method.
946
946
947
947
Example:
948
948
949
949
{% tabs %}
950
-
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
950
+
{% highlight html tabtitle="Composition API (Standalone)" %}
951
951
952
952
<template>
953
953
<divid="app">
@@ -983,7 +983,7 @@ const addAnnotation = function () {
983
983
</script>
984
984
985
985
{% endhighlight %}
986
-
{% highlight html tabtitle="Standalone" %}
986
+
{% highlight html tabtitle="Options API (Standalone)" %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
1219
+
{% highlight html tabtitle="Composition API (Server-Backed)" %}
1220
1220
1221
1221
<template>
1222
1222
<divid="app">
@@ -1491,7 +1491,7 @@ export default {
1491
1491
1492
1492
## Strikethrough text programmatically
1493
1493
1494
-
Programmatically add strikethrough using the [addAnnotation](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation/#addannotation) method.
1494
+
Programmatically add strikethrough using the [addAnnotation](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation#addannotation) method.
1495
1495
1496
1496
Here's an example of how you can use the **addAnnotation()** method to apply Strikethrough programmatically:
1497
1497
@@ -1686,7 +1686,7 @@ In the pan mode, if the squiggly mode is entered, the PDF Viewer control will sw
1686
1686
Refer to the following code snippet to switch to squiggly mode.
1687
1687
1688
1688
{% tabs %}
1689
-
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
1689
+
{% highlight html tabtitle="Composition API (Standalone)" %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
1770
+
{% highlight html tabtitle="Composition API (Server-Backed)" %}
1771
1771
1772
1772
<template>
1773
1773
<divid="app">
@@ -2042,7 +2042,7 @@ export default {
2042
2042
2043
2043
## Squiggly a text programmatically
2044
2044
2045
-
The PDF Viewer library enables you to programmatically Squiggly text within the PDF Viewer control using the [**addAnnotation()**](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation/#addannotation) method.
2045
+
The PDF Viewer library enables you to programmatically Squiggly text within the PDF Viewer control using the [**addAnnotation()**](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotation#addannotation) method.
2046
2046
2047
2047
Here's an example of how you can use the **addAnnotation()** method to apply Squiggly programmatically:
2048
2048
@@ -2426,45 +2426,35 @@ Refer to the following code snippet for calling undo and redo actions from the c
0 commit comments