diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/accessibility.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/accessibility.md
index 6c9036a22..acec186ae 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/accessibility.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/accessibility.md
@@ -1,19 +1,18 @@
---
layout: post
-title: Accessibility in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about accessibility in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Accessibility in JavaScript PDF Viewer | Syncfusion
+description: Learn about accessibility in Syncfusion JavaScript PDF Viewer - WCAG 2.2, Section 508, ADA, and keyboard navigation support.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Accessibility in Syncfusion PDF Viewer components
+# Accessibility in Syncfusion JavaScript ES5 PDF Viewer components
-The PDF Viewer component followed the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
+The PDF Viewer component follows established accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/), and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
-The accessibility compliance for the PDF Viewer component is outlined below.
+The accessibility compliance for the PDF Viewer component is summarized below.
| Accessibility Criteria | Compatibility |
| -- | -- |
@@ -39,30 +38,31 @@ The accessibility compliance for the PDF Viewer component is outlined below.
- The component does not meet the requirement.
+Note: Mobile device support is marked as partial due to platform-level constraints on hover interactions, complex keyboard navigation, and screen reader capabilities that vary by device and browser.
+
## WAI-ARIA attributes
-[WAI-ARIA](https://www.w3.org/WAI/ARIA/apg/patterns/alert/) (Accessibility Initiative – Accessible Rich Internet Applications) defines a way to increase the accessibility of web pages, dynamic content, and user interface components developed with Ajax, HTML, JavaScript,and related technologies. ARIA provides additional semantics to describe the role, state, and functionality of web components. The following ARIA attributes are used in the PDF Viewer component:
+[WAI-ARIA](https://www.w3.org/WAI/ARIA/apg/patterns/alert/) (Accessibility Initiative – Accessible Rich Internet Applications) defines a way to increase the accessibility of web pages, dynamic content, and user interface components developed with Ajax, HTML, JavaScript, and related technologies. ARIA provides additional semantics to describe the role, state, and functionality of web components. The following ARIA attributes are used in the PDF Viewer component:
| Attributes | Purpose |
| --- | --- |
| `aria-disabled`| Indicates whether the PDF Viewer component is in a disabled state or not.|
-| `aria-expanded`| Indicates whether the suggestion list has expanded or not. |
-| `aria-readonly` | Indicates the readonly state of the PDF Viewer element. |
-| `aria-haspopup` | Indicates whether the PDF Viewer input element has a suggestion list or not. |
-| `aria-label` | Indicates the breadcrumb item text. |
-| `aria-labelledby` | Provides a label for the PDF Viewer. Typically, the "aria-labelledby" attribute will contain the id of the element used as the PDF Viewer's title. |
-| `aria-describedby` | This attribute points to the PDF Viewer element describing the one it's set on. |
-| `aria-orientation` | Indicates whether the PDF Viewer element is oriented horizontally or vertically. |
-| `aria-valuetext` | Returns the current text of the PDF Viewer. |
-| `aria-valuemax` | Indicates the Maximum value of the PDF Viewer. |
-| `aria-valuemin` | Indicates the Minimum value of the PDF Viewer. |
-| `aria-valuenow` | Indicates the current value of the PDF Viewer. |
-| `aria-controls` | Attribute is set to the button and it points to the corresponding content. |
-
+| `aria-expanded`| Indicates whether an element within the PDF Viewer is expanded or collapsed. |
+| `aria-readonly` | Indicates the read-only state of a PDF Viewer element. |
+| `aria-haspopup` | Indicates the presence of a popup, such as a context menu or submenu. |
+| `aria-label` | Provides a human-readable label for interactive elements in the PDF Viewer. |
+| `aria-labelledby` | Identifies the element(s) that label the PDF Viewer, often referencing the title element. |
+| `aria-describedby` | Identifies the element(s) that describe the PDF Viewer or its controls. |
+| `aria-orientation` | Indicates whether an element is oriented horizontally or vertically. |
+| `aria-valuetext` | Provides a human-readable text alternative for the current value of a range-type element. |
+| `aria-valuemax` | Specifies the maximum value of a range-type element. |
+| `aria-valuemin` | Specifies the minimum value of a range-type element. |
+| `aria-valuenow` | Specifies the current value of a range-type element. |
+| `aria-controls` | Identifies the element(s) controlled by the current element. |
## Keyboard interaction
-The PDF Viewer component followed the [keyboard interaction](https://www.w3.org/WAI/ARIA/apg/patterns/alert/#keyboardinteraction) guideline, making it easy for people who use assistive technologies (AT) and those who completely rely on keyboard navigation. The following keyboard shortcuts are supported by the Message component.
+The PDF Viewer component follows the [keyboard interaction](https://www.w3.org/WAI/ARIA/apg/patterns/alert/#keyboardinteraction) guideline, making it easy for people who use assistive technologies (AT) and those who rely on keyboard navigation. The following keyboard shortcuts are supported by the PDF Viewer component.
| **Press (Windows)** |**Press (Macintosh)** | **To do this** |
| --- | --- | --- |
@@ -71,7 +71,7 @@ The PDF Viewer component followed the [keyboard interaction](https://www.w3.org/
| CONTROL + Right Arrow (or) CONTROL + Down Arrow |COMMAND + Right Arrow (or) COMMAND + Down Arrow |Navigate to the last page |
|Left Arrow | Left Arrow (or) Shift + Space |Navigate to the previous page|
| Right Arrow | Right Arrow (or) Space | Navigate to the next page |
-| CONTROL + G | COMMAND + G | Go To The Page|
+| CONTROL + G | COMMAND + G | Go to a specific page|
|Up Arrow |Up Arrow |Scroll up|
| Down Arrow | Down Arrow | Scroll down|
|||**Shortcuts for Zooming**|
@@ -97,16 +97,7 @@ The PDF Viewer component followed the [keyboard interaction](https://www.w3.org/
|Shift + H |Shift + H |Enable pan mode|
|Shift + V |Shift + V |Enable text selection mode|
-The current implementation of our PDF Viewer includes keyboard shortcuts for various functions like scrolling, zooming, text search, printing, and annotation deletion.
-
-To enhance user experience, we're adding additional keyboard shortcuts for actions such as navigating between pages, accessing specific pages, toggling annotation tools, and displaying PDF elements like outlines, annotations, bookmarks, and thumbnails.
-
-To support this, we're introducing a new class called **commandManager**, which handles custom commands triggered by specific key gestures. These custom commands will be defined by users and executed accordingly.
-
-The **commandManager** will have a parameter called Commands, which will hold the collection of custom keyboard commands specified by users. Each custom command will be represented by a KeyboardCommand class, containing the `command name` and associated `keyboard combination`.
-
-Additionally, we're introducing the **keyboardCustomCommands** parameter for the CommandManager, which will utilize the EventCallback to handle keyboard events and trigger appropriate methods when specific key combinations are pressed.
-
+The PDF Viewer supports custom keyboard commands through a `commandManager`, which handles commands triggered by specific key gestures. Custom commands are defined by users and executed accordingly. The `commandManager` includes a `keyboardCommand` collection to hold custom keyboard commands. Each custom command is represented by a `KeyboardCommand` entry, containing the command name and associated keyboard combination. Additionally, the `keyboardCustomCommands` parameter utilizes an event callback to handle keyboard events and trigger methods when specific key combinations are pressed.
{% tabs %}
{% highlight html tabtitle="Standalone" %}
@@ -140,7 +131,7 @@ Additionally, we're introducing the **keyboardCustomCommands** parameter for the
var viewer = new ej.pdfviewer.PdfViewer({
//Sets the document path for initial loading
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl: "https://cdn.syncfusion.com/ej2/24.1.41/dist/ej2-pdfviewer-lib"
+ resourceUrl: "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib"
});
//Inject the dependencies required to render the PDF Viewer
ej.pdfviewer.PdfViewer.Inject(
@@ -266,18 +257,15 @@ viewer.commandManager = {
{% endhighlight %}
{% endtabs %}
-Each `keyboardCommand` object consists of a name property, specifying the `name` of the `custom command`, and a `gesture property`, defining the key gesture associated with the command.
-
-For example, the first command named `customCopy` is associated with the **G** key and requires both the **Shift** and **Alt** modifier keys to be pressed simultaneously.
-
-Additionally, there's an explanation of the key modifiers used in the gestures:
+Each `keyboardCommand` object consists of a `name` property for the custom command and a `gesture` property defining the key gesture associated with the command. For example, the `customCopy` command is associated with the G key and requires both the Shift and Alt modifier keys to be pressed simultaneously.
-* Ctrl corresponds to the Control key, represented by the value `1`.
-* Alt corresponds to the Alt key, represented by the value `2`.
-* Shift corresponds to the Shift key, represented by the value `4`.
-* Meta corresponds to the Command key on macOS or the Windows key on Windows, represented by the value `8`.
+Key modifiers used in gestures:
+- Ctrl corresponds to the Control key (value `1`).
+- Alt corresponds to the Alt key (value `2`).
+- Shift corresponds to the Shift key (value `4`).
+- Meta corresponds to the Command key on macOS or the Windows key on Windows (value `8`).
-This setup allows users to perform custom actions within the PDF viewer by pressing specific key combinations, enhancing the user experience and providing more efficient navigation and interaction options.
+This setup enables users to perform custom actions within the PDF Viewer by pressing specific key combinations, improving navigation and interaction efficiency.
## Ensuring accessibility
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/annotation-event.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/annotation-event.md
new file mode 100644
index 000000000..fb0528a9a
--- /dev/null
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/annotation-event.md
@@ -0,0 +1,900 @@
+---
+title: Annotations Events in JavaScript PDF Viewer control | Syncfusion
+description: Learn here all about Annotations Events in Syncfusion JavaScript PDF Viewer component of Syncfusion Essential JS 2 and more.
+platform: document-processing
+control: PDF Viewer
+documentation: ug
+domainurl: ##DomainURL##
+---
+
+# Annotations Events in JavaScript Pdf viewer control
+
+The PDF Viewer component triggers various events based on user interactions and changes in the component's state. These events can be used to perform actions when a specific event occurs. This section describes the events available in the PDF Viewer component.
+
+| Event | Description |
+| ------------------------------------------------------------------ | ---------------------------------------------------------------------------------- |
+| [`annotationAdd`](#annotationadd) | Triggers when an annotation is added to a page in the PDF document. |
+| [`annotationDoubleClick`](#annotationdoubleclick) | Triggers when an annotation is double-clicked. |
+| [`annotationMouseLeave`](#annotationmouseleave) | Triggers when the mouse pointer moves away from an annotation object. |
+| [`annotationMouseover`](#annotationmouseover) | Triggers when the mouse pointer moves over an annotation object. |
+| [`annotationMove`](#annotationmove) | Triggers when an annotation is moved on a page in the PDF document. |
+| [`annotationMoving`](#annotationmoving) | Triggers while an annotation is being moved. |
+| [`annotationPropertiesChange`](#annotationpropertieschange) | Triggers when the properties of an annotation are modified on a PDF page. |
+| [`annotationRemove`](#annotationremove) | Triggers when an annotation is removed from a page in the PDF document. |
+| [`annotationResize`](#annotationresize) | Triggers when an annotation is resized on a page in the PDF document. |
+| [`annotationSelect`](#annotationselect) | Triggers when an annotation is selected on a page in the PDF document. |
+| [`annotationUnSelect`](#annotationunselect) | Triggers when an annotation is unselected on a page in the PDF document. |
+| [`beforeAddFreeText`](#beforeaddfreetext) | Triggers before adding a text in the freeText annotation. |
+| [`addSignature`](#addsignature) | Triggers when a signature is added to a page in the PDF document. |
+| [`removeSignature`](#removesignature) | Triggers when a signature is removed from a page in the PDF document. |
+| [`resizeSignature`](#resizesignature) | Triggers when a signature is resized on a page in the PDF document. |
+| [`signaturePropertiesChange`](#signaturepropertieschange) | Triggers when the properties of a signature are changed on a page in the PDF document. |
+| [`signatureSelect`](#signatureselect) | Triggers when a signature is selected on a page in the PDF document. |
+| [`signatureUnselect`](#signatureunselect) | Triggers when a signature is unselected on a page in the PDF document. |
+
+
+### annotationAdd
+
+The [annotationAdd](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#annotationaddevent) event is triggered when an annotation is added to a PDF document's page.
+
+#### Event Arguments
+
+For event data, see [AnnotationAddEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotationAddEventArgs/). It provides properties such as `annotationId`, `pageNumber`, `annotationType`, and `bounds`.
+
+The following example illustrates how to handle the `annotationAdd` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+var viewer = new ej.pdfviewer.PdfViewer ({
+ documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
+ annotationAdd: function (args) {
+ console.log('Annotation added with ID: ' + args.annotationId);
+ console.log('Annotation type: ' + args.annotationType);
+ }
+});
+
+ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.BookmarkView, ej.pdfviewer.ThumbnailView, ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.Annotation, ej.pdfviewer.FormFields, ej.pdfviewer.FormDesigner,ej.pdfviewer.PageOrganizer);
+
+viewer.appendTo('#pdfViewer');
+```
+
+### annotationDoubleClick
+
+The [annotationDoubleClick](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#annotationdoubleclickevent) event is triggered when an annotation is double-clicked.
+
+#### Event Arguments
+
+For event data, see [AnnotationDoubleClickEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotationDoubleClickEventArgs/).
+
+The following example illustrates how to handle the `annotationDoubleClick` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ annotationDoubleClick: function (args) {
+ console.log('Annotation double-clicked on page: ' + args.pageIndex);
+ }
+});
+
+viewer.appendTo('#pdfViewer');
+```
+
+### annotationMouseLeave
+
+The [annotationMouseLeave](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#annotationmouseleaveevent) event is triggered when the user's mouse pointer moves away from an annotation object.
+
+#### Event Arguments
+
+For event data, see [AnnotationMouseLeaveEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotationMouseLeaveEventArgs/).
+
+The following example illustrates how to handle the `annotationMouseLeave` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ annotationMouseLeave: function (args) {
+ console.log('Annotation mouse leave event is triggered for annotation with ID: ' + args.pageIndex);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### annotationMouseover
+
+The [annotationMouseover](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#annotationmouseoverevent) event is triggered when the mouse is moved over an annotation object.
+
+#### Event Arguments
+
+For event data, see [AnnotationMouseOverEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotationMouseOverEventArgs/).
+
+The following example illustrates how to handle the `annotationMouseover` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ annotationMouseover: function (args) {
+ console.log('Annotation mouse over event is triggered for annotation with ID: ' + args.annotationId);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### annotationMove
+
+The [annotationMove](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#annotationmoveevent) event is triggered when an annotation is moved over the page of the PDF document.
+
+#### Event Arguments
+
+For event data, see [AnnotationMoveEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotationMoveEventArgs/).
+
+The following example illustrates how to handle the `annotationMove` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ annotationMove: function (args) {
+ console.log('Annotation moved. ID: ' + args.annotationId + ' on page ' + args.pageIndex);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### annotationMoving
+
+The [annotationMoving](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#annotationmovingevent) event is triggered while an annotation is being moved.
+
+#### Event Arguments
+
+For event data, see [AnnotationMovingEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotationMovingEventArgs/).
+
+The following example illustrates how to handle the `annotationMoving` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ annotationMoving: function (args) {
+ console.log('Annotation is being moved. Current Action: ' + args.currentPosition);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### annotationPropertiesChange
+
+The [annotationPropertiesChange](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#annotationpropertieschangeevent) event is triggered when an annotation's property is modified on a PDF document page.
+
+#### Event Arguments
+
+For event data, see [AnnotationPropertiesChangeEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotationPropertiesChangeEventArgs/). It provides properties such as `annotationId`, `pageNumber`, and `action`.
+
+The following example illustrates how to handle the `annotationPropertiesChange` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ annotationPropertiesChange: function (args) {
+ console.log('Annotation properties changed for ID: ' + args.annotationId);
+ console.log('isThicknessChanged: ' + args.isThicknessChanged);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### annotationRemove
+
+The [annotationRemove](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#annotationremoveevent) event is triggered when an annotation is removed from a PDF document's page.
+
+#### Event Arguments
+
+For event data, see [AnnotationRemoveEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotationRemoveEventArgs/). It provides properties such as `annotationId` and `pageNumber`.
+
+The following example illustrates how to handle the `annotationRemove` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ annotationRemove: function (args) {
+ console.log('Annotation removed with ID: ' + args.annotationId);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### annotationResize
+
+The [annotationResize](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#annotationresizeevent) event is triggered when an annotation is resized on a PDF document page.
+
+#### Event Arguments
+
+For event data, see [AnnotationResizeEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotationResizeEventArgs/).
+
+The following example illustrates how to handle the `annotationResize` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ annotationResize: function (args) {
+ console.log('Annotation resized. ID: ' + args.annotationId);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### annotationSelect
+
+The [annotationSelect](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#annotationselectevent) event is triggered when an annotation is selected on a PDF document's page.
+
+#### Event Arguments
+
+For event data, see [AnnotationSelectEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotationSelectEventArgs/).
+
+The following example illustrates how to handle the `annotationSelect` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ annotationSelect: function (args) {
+ console.log('Annotation selected with ID: ' + args.annotationId);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### annotationUnselect
+
+The [annotationUnselect](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#annotationunselectevent) event is triggered when an annotation is unselected from the PDF document's page.
+
+#### Event Arguments
+
+For event data, see [AnnotationUnSelectEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotationUnSelectEventArgs/).
+
+The following example illustrates how to handle the `annotationUnselect` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ annotationUnSelect: function (args) {
+ console.log('Annotation unselected with ID: ' + args.annotationId);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### beforeAddFreeText
+
+The [beforeAddFreeText](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#beforeaddfreetextevent) event is triggered before adding a text in the freeText annotation.
+
+#### Event Arguments
+
+For event data, see [BeforeAddFreeTextEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/beforeAddFreeTextEventArgs/).
+
+The following example illustrates how to handle the `beforeAddFreeText` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ beforeAddFreeText: function (args) {
+ console.log('Before adding free text on page: ' + args.pageIndex);
+ // Set args.cancel to true to prevent adding the free text annotation
+ // args.cancel = true;
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## Signature-related events
+
+### addSignature
+
+The [addSignature](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#addsignatureevent) event is triggered when a signature is added to a page of a PDF document.
+
+#### Event Arguments
+
+For event data, see [AddSignatureEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/addSignatureEventArgs/). It provides properties such as `pageNumber`.
+
+The following example illustrates how to handle the `addSignature` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ addSignature: function (args) {
+ console.log('Signature added to page: ' + args.pageIndex);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### removeSignature
+
+The [removeSignature](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#removesignatureevent) event is triggered when the signature is removed from the page of a PDF document.
+
+#### Event Arguments
+
+For event data, see [RemoveSignatureEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/removeSignatureEventArgs/). It provides properties such as `pageNumber`.
+
+The following example illustrates how to handle the `removeSignature` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ removeSignature: function (args) {
+ console.log('Signature removed from page: ' + args.pageIndex);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### resizeSignature
+
+The [resizeSignature](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#resizesignatureevent) event is triggered when the signature is resized and placed on a page of a PDF document.
+
+#### Event Arguments
+
+For event data, see [ResizeSignatureEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/resizeSignatureEventArgs/).
+
+The following example illustrates how to handle the `resizeSignature` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ resizeSignature: function (args) {
+ console.log('Signature resized on page ' + args.pageIndex);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### signaturePropertiesChange
+
+The [signaturePropertiesChange](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#signaturepropertieschangeevent) event is triggered when the property of the signature is changed in the page of the PDF document.
+
+#### Event Arguments
+
+For event data, see [SignaturePropertiesChangeEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/signaturePropertiesChangeEventArgs/).
+
+The following example illustrates how to handle the `signaturePropertiesChange` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ signaturePropertiesChange: function (args) {
+ console.log('Signature properties changed on page ' + args.pageIndex);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### signatureSelect
+
+The [signatureSelect](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#signatureselectevent) event is triggered when signature is selected over the page of the PDF document.
+
+#### Event Arguments
+
+For event data, see [SignatureSelectEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/signatureSelectEventArgs/).
+
+The following example illustrates how to handle the `signatureSelect` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ signatureSelect: function (args) {
+ console.log('Signature selected on page ' + args.pageIndex);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+### signatureUnselect
+
+The [signatureUnselect](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#signatureunselectevent) event is triggered when signature is unselected over the page of the PDF document.
+
+#### Event Arguments
+
+For event data, see [SignatureUnSelectEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/signatureUnSelectEventArgs/).
+
+The following example illustrates how to handle the `signatureUnselect` event.
+
+```html
+{% raw %}
+
+
+
+ Essential JS 2
+
+
+
+
+
+
+
+
+
+
+
+
+{% endraw %}
+```
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation,
+ ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation,
+ ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ signatureUnselect: function (args) {
+ console.log('Signature unselected on page ' + args.pageIndex);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/comments.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/comments.md
index e9a39decb..68394df40 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/comments.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/comments.md
@@ -1,17 +1,16 @@
---
layout: post
-title: Comments in Javascript PDF Viewer control | Syncfusion
-description: Learn here all about Comments in Syncfusion Javascript PDF Viewer control of Syncfusion Essential JS 2 and more.
+title: Comments in JavaScript PDF Viewer control | Syncfusion
+description: Learn about comments, replies, and status in the Syncfusion JavaScript PDF Viewer control (Essential JS 2).
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Comments in Javascript PDF Viewer control
+# Comments in JavaScript PDF Viewer control
-The PDF Viewer control provides options to add, edit, and delete the comments to the following annotation in the PDF documents:
+The PDF Viewer control provides options to add, edit, and delete comments for the following annotations in PDF documents:
* Shape annotation
* Stamp annotation
@@ -21,11 +20,11 @@ The PDF Viewer control provides options to add, edit, and delete the comments to
* Free text annotation
* Ink annotation
-
+
## Adding a comment to the annotation
-Annotation comment, comment replies, and status can be added to the PDF document using the comment panel.
+Annotation comments, replies, and status can be managed in the PDF document using the comment panel.
### Comment panel
@@ -34,87 +33,87 @@ Annotation comments can be added to the PDF using the comment panel. The comment
1. Using the annotation menu
* Click the Edit Annotation button in the PDF Viewer toolbar. A toolbar appears below it.
- * Click the Comment Panel button. A comment panel will appear.
+ * Click the Comment Panel button. The comment panel opens.
2. Using Context menu
- * Select annotation in the PDF document and right-click it.
- * Select the comment option in the context menu that appears.
+ * Select the annotation in the PDF document and right-click it.
+ * Select Comment from the context menu.
3. Using the Mouse click
- * Select annotation in the PDF document and double click it, a comment panel will appear.
+ * Select the annotation in the PDF document and double-click it. The comment panel opens.
-If the comment panel is already in the open state, you can select the annotations and add annotation comments using the comment panel.
+If the comment panel is already open, select the annotation and add comments using the panel.
### Adding comments
-* Select annotation in the PDF document and click it.
-* The selected annotation comment container is highlighted in the comment panel.
-* Now, you can add comment and comment replies using the comment panel.
+* Select the annotation in the PDF document.
+* The corresponding comment thread is highlighted in the comment panel.
+* Add comments and replies using the comment panel.
-
+
### Adding Comment Replies
-* The PDF Viewer control provides an option to add multiple replies to the comment.
-* After adding the annotation comment, you can add a reply to the comment.
+* Multiple replies can be added to a comment.
+* After adding a comment, add replies as needed.
### Adding Comment or Reply Status
-* Select the Annotation Comments in the comment panel.
-* Click the more options button showing in the Comments or reply container.
-* Select the Set Status option in the context menu that appears.
-* Select the status of the annotation comment in the context menu that appears.
+* Select the annotation comment in the comment panel.
+* Click More options in the comment or reply container.
+* Select Set Status from the context menu.
+* Choose a status for the comment.
-
+
### Editing the comments and comments replies of the annotations
-The comment, comment replies, and status of the annotation can be edited using the comment panel.
+Comments, replies, and status can be edited using the comment panel.
### Editing the Comment or Comment Replies
-The annotation comment and comment replies can be edited in the following ways:
+Edit comments and replies in the following ways:
1. Using the Context menu
- * Select the Annotation Comments in the comment panel.
- * Click the More options button showing in the Comments or reply container.
- * Select the Edit option in the context menu that appears.
- * Now, an editable text box appears. You can change the content of the annotation comment or comment reply.
+ * Select the annotation comment in the comment panel.
+ * Click More options in the comment or reply container.
+ * Select Edit from the context menu.
+ * An editable text box appears. Change the content of the comment or reply.
2. Using the Mouse Click
- * Select the annotation comments in the comment panel.
- * Double click the comment or comment reply content.
- * Now, an editable text box appears. You can change the content of the annotation comment or comment reply.
+ * Select the annotation comment in the comment panel.
+ * Double-click the comment or reply content.
+ * An editable text box appears. Change the content of the comment or reply.
### Editing Comment or Reply Status
-* Select the Annotation Comments in the comment panel.
-* Click the more options button showing in the Comments or reply container.
-* Select the Set Status option in the context menu that appears.
-* Select the status of the annotation comment in the context menu that appears.
-* Status ‘None’ is the default state. If the status is set to ‘None,’ the comments or reply does not appear.
+* Select the annotation comment in the comment panel.
+* Click More options in the comment or reply container.
+* Select Set Status from the context menu.
+* Choose a status for the comment.
+* None is the default state. Selecting None clears the status indicator; the comment or reply remains visible.
-
+
### Delete Comment or Comment Replies
-* Select the Annotation Comments in the comment panel.
-* Click the more options button shown in the Comments or reply container.
-* Select the Delete option in the context menu that appears.
+* Select the annotation comment in the comment panel.
+* Click More options in the comment or reply container.
+* Select Delete from the context menu.
-
+
->The annotation will be deleted on deleting the comment using comment panel.
+>Deleting the root comment from the comment panel also deletes the associated annotation.
## How to check the comments added by the user
-The comments added to the PDF document can be viewed by using the [comments](https://ej2.syncfusion.com/documentation/api/pdfviewer/commentEventArgs/) property of the annotation.
+Comments added to the PDF document can be read using the annotation's `comments` property.
-Refer to the following code to check the comments added in the PDF document using a button click event.
+The following example logs comments in response to a button click.
```html
@@ -125,7 +124,7 @@ Refer to the following code to check the comments added in the PDF document usin
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/23.1.43/dist/ej2-pdfviewer-lib";
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib";
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/free-text-annotation.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/free-text-annotation.md
index a74a8354c..bc46a7f0b 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/free-text-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/free-text-annotation.md
@@ -1,31 +1,30 @@
---
layout: post
-title: Free text annotation in Javascript PDF Viewer control | Syncfusion
-description: Learn here all about Free text annotation in Syncfusion Javascript PDF Viewer control of Syncfusion Essential JS 2 and more.
+title: Free text annotation in JavaScript PDF Viewer control | Syncfusion
+description: Learn about free text annotations in the Syncfusion JavaScript PDF Viewer (Essential JS 2): add, edit, delete, and default settings.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Free text annotation in Javascript PDF Viewer control
+# Free text annotation in JavaScript PDF Viewer control
-The PDF Viewer control provides the options to add, edit, and delete the free text annotations.
+The PDF Viewer control provides options to add, edit, and delete free text annotations.
-## Adding a free text annotation to the PDF document
+## Add a free text annotation to the PDF document
-The Free text annotations can be added to the PDF document using the annotation toolbar.
+Free text annotations can be added to the PDF document using the annotation toolbar.
-* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Select the **Free Text Annotation** button in the annotation toolbar. It enables the Free Text annotation mode.
-* You can add the text over the pages of the PDF document.
+* Click the **Edit Annotation** button in the PDF Viewer toolbar. The annotation toolbar appears below it.
+* Select the **Free Text Annotation** button to enable free text annotation mode.
+* Add text anywhere on the pages of the PDF document.
-In the pan mode, if the free text annotation mode is entered, the PDF Viewer control will switch to text select mode.
+When in pan mode, selecting free text annotation switches the PDF Viewer to text select mode.
-
+
-Refer to the following code sample to switch to the Free Text annotation mode using a button click.
+The following example switches to free text annotation mode using a button click.
```html
@@ -36,7 +35,7 @@ Refer to the following code sample to switch to the Free Text annotation mode us
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib"
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib"
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -73,11 +72,11 @@ if (addFreeTextAnnotationButton) {
{% endhighlight %}
{% endtabs %}
-## Adding a free text annotation programatically to the PDF document
+## Add a free text annotation programmatically to the PDF document
-The PDF Viewer library allows you to add the free text annotation in the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#addannotation) method.
+The PDF Viewer library allows adding a free text annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#annotation) method.
-Here is an example of how you can use the [**addAnnotation()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#addannotation) method to move the free text annotation programmatically:
+Here is an example of adding a free text annotation programmatically using addAnnotation():
```html
@@ -88,7 +87,7 @@ Here is an example of how you can use the [**addAnnotation()**](https://ej2.sync
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib"
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib"
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -143,11 +142,11 @@ if (addFreeTextAnnotation) {
{% endhighlight %}
{% endtabs %}
-## Change the content of an existing Free text annotation programmatically
+## Change the content of an existing free text annotation programmatically
-To change the content of an existing free text annotation in the Syncfusion PDF viewer programmatically, you can use the **editAnnotation()** method.
+To change the content of an existing free text annotation programmatically, use the editAnnotation() method.
-Here is an example of how you can use the **editAnnotation()** method to change the content of a free text annotation:
+Here is an example of changing the content of a free text annotation using editAnnotation():
```html
@@ -157,7 +156,7 @@ Here is an example of how you can use the **editAnnotation()** method to change
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib"
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib"
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -205,78 +204,78 @@ if (changeContent) {
{% endhighlight %}
{% endtabs %}
-N> Please note that the current version of the PDF Viewer does not offer the functionality to edit existing text within a PDF document. However, you can add new free text annotations and modify existing free text annotations within the document.
+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.
-## Editing the properties of free text annotation
+## Edit the properties of free text annotations
-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.
+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.
-### Editing font family
+### Edit font family
-The font family of the annotation can be edited by selecting the desired font in the Font Family tool.
+Edit the font family by selecting a font in the Font Family tool.
-
+
-### Editing font size
+### Edit font size
-The font size of the annotation can be edited by selecting the desired size in the Font Size tool.
+Edit the font size by selecting a size in the Font Size tool.
-
+
-### Editing font color
+### Edit font color
-The font color of the annotation can be edited using the color palette provided in the Font Color tool.
+Edit the font color using the color palette in the Font Color tool.
-
+
-### Editing the text alignment
+### Edit text alignment
-The text in the annotation can be aligned by selecting the desired styles in the drop-down pop-up in the Text Align tool.
+Align text by selecting an option from the Text Align tool.
-
+
-### Editing text styles
+### Edit text styles
-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.
+Edit text styles by selecting options in the Font Style tool.
-
+
-### Editing fill color
+### Edit fill color
-The fill color of the annotation can be edited using the color palette provided in the Edit Color tool.
+Edit the fill color using the color palette in the Edit Color tool.
-
+
-### Editing stroke color
+### Edit stroke color
-The stroke color of the annotation can be edited using the color palette provided in the Edit Stroke Color tool.
+Edit the stroke color using the color palette in the Edit Stroke Color tool.
-
+
-### Editing thickness
+### Edit thickness
-The border thickness of the annotation can be edited using the range slider provided in the Edit Thickness tool.
+Edit border thickness using the range slider in the Edit Thickness tool.
-
+
-### Editing opacity
+### Edit opacity
-The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.
+Edit opacity using the range slider in the Edit Opacity tool.
-
+
-## Setting default properties during control initialization
+## Set default properties during control initialization
-The properties of the free text annotation can be set before creating the control using the FreeTextSettings.
+Default properties for free text annotations can be set before creating the control using FreeTextSettings.
-After editing the default values, they will be changed to the selected values. Refer to the following code sample to set the default free text annotation settings.
+After changing default values, the selected values are applied. The following example sets default free text annotation settings.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
freeTextSettings : { fillColor: 'green', borderColor: 'blue', fontColor: 'yellow' }
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/ink-annotation.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/ink-annotation.md
index abd11847e..477e9f990 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/ink-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/ink-annotation.md
@@ -1,31 +1,30 @@
---
layout: post
-title: Ink annotation in Javascript PDF Viewer control | Syncfusion
-description: Learn here all about Ink annotation in Syncfusion Javascript PDF Viewer control of Syncfusion Essential JS 2 and more.
+title: Ink annotation in JavaScript PDF Viewer control | Syncfusion
+description: Learn about ink annotations in the Syncfusion JavaScript PDF Viewer (Essential JS 2): add, edit, delete, and default settings.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Ink annotation in Javascript PDF Viewer control
+# Ink annotation in JavaScript PDF Viewer control
-The PDF Viewer control provides the options to add, edit, and delete the ink annotations.
+The PDF Viewer control provides options to add, edit, and delete ink annotations.
-
+
-## Adding an ink annotation to the PDF document
+## Add an ink annotation to the PDF document
-The ink annotations can be added to the PDF document using the annotation toolbar.
+Ink annotations can be added to the PDF document using the annotation toolbar.
-* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Select the **Draw Ink** button in the annotation toolbar. It enables the ink annotation mode.
-* You can draw anything over the pages of the PDF document.
+* Click the **Edit Annotation** button in the PDF Viewer toolbar. The annotation toolbar appears below it.
+* Select the **Draw Ink** button to enable ink annotation mode.
+* Draw on any page of the PDF document.
-
+
-Refer to the following code sample to switch to the ink annotation mode.
+The following example switches to ink annotation mode.
```html
@@ -36,7 +35,7 @@ Refer to the following code sample to switch to the ink annotation mode.
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -74,11 +73,11 @@ if (addInkAnnotation) {
{% endhighlight %}
{% endtabs %}
-## Adding a Ink annotation programatically to the PDF document
+## Add an ink annotation programmatically to the PDF document
-The PDF Viewer library allows you to add the Ink annotation in the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation/#annotation) method.
+The PDF Viewer library allows adding an ink annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation/#annotation) method.
-Here is an example of how you can use the **addAnnotation()** method to move the Ink annotation programmatically:
+Here is an example of adding an ink annotation programmatically using addAnnotation():
```html
@@ -89,7 +88,7 @@ Here is an example of how you can use the **addAnnotation()** method to move the
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -139,11 +138,11 @@ if (addInkAnnotation) {
{% endhighlight %}
{% endtabs %}
-## Edit the existing Ink annotation programmatically
+## Edit an existing ink annotation programmatically
-To modify existing Ink annotation in the Syncfusion PDF viewer programmatically, you can use the **editAnnotation()** method.
+To modify an existing ink annotation programmatically, use the editAnnotation() method.
-Here is an example of how you can use the **editAnnotation()** method:
+Here is an example of using editAnnotation():
```html
@@ -154,7 +153,7 @@ Here is an example of how you can use the **editAnnotation()** method:
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -212,33 +211,33 @@ if (editInkAnnotation) {
{% endhighlight %}
{% endtabs %}
-## Editing the properties of the ink annotation
+## Edit the properties of ink annotations
-The stroke color, thickness, and opacity of the ink annotation can be edited using the Edit stroke color tool, Edit thickness tool, and Edit opacity tool in the annotation toolbar.
+Stroke color, thickness, and opacity can be edited using the Edit Stroke Color, Edit Thickness, and Edit Opacity tools in the annotation toolbar.
-### Editing stroke color
+### Edit stroke color
-The stroke color of the annotation can be edited using the color palette provided in the Edit Stroke Color tool.
+Edit the stroke color using the color palette in the Edit Stroke Color tool.
-
+
-### Editing thickness
+### Edit thickness
-The thickness of the border of the annotation can be edited using the range slider provided in the Edit Thickness tool.
+Edit thickness using the range slider in the Edit Thickness tool.
-
+
-### Editing opacity
+### Edit opacity
-The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.
+Edit opacity using the range slider in the Edit Opacity tool.
-
+
-## Setting default properties during the control initialization
+## Set default properties during control initialization
-The properties of the ink annotation can be set before creating the control using the InkAnnotationSettings.
+Default properties for ink annotations can be set before creating the control using InkAnnotationSettings.
-After editing the default values, they will be changed to the selected values.
+After changing default values, the selected values are applied.
Refer to the following code sample to set the default ink annotation settings.
{% tabs %}
@@ -250,7 +249,7 @@ PdfViewer.Inject(Toolbar, Magnification, Navigation, Annotation, LinkAnnotation,
let pdfviewer: PdfViewer = new PdfViewer();
pdfviewer.documentPath = "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf";
-pdfviewer.resourceUrl = "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib";
+pdfviewer.resourceUrl = "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib";
pdfviewer.inkAnnotationSettings = {author: 'Syncfusion', strokeColor: 'green', thickness: 3, opacity: 0.6};
pdfviewer.appendTo('#PdfViewer');
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/line-angle-constraints.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/line-angle-constraints.md
index df5041d95..ebaea69c8 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/line-angle-constraints.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/line-angle-constraints.md
@@ -1,20 +1,19 @@
---
layout: post
-title: Line Angle Constraint in JavaScript PdfViewer | Syncfusion
-description: Learn here all about Line Angle Constraints in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Line angle constraints in JavaScript PDF Viewer | Syncfusion
+description: Learn to add, edit, delete, and configure highlight, underline, strikethrough, and squiggly text markup annotations programmatically in PDF Viewer.
platform: document-processing
-control: Line Angle Constraints
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Line Angle Constraints in JavaScript PDF Viewer
+# Line angle constraints in JavaScript PDF Viewer
The PDF Viewer control provides robust **line angle constraints** functionality. This allows users to draw line type annotations with controlled angle snapping, improving accuracy and consistency across technical drawings and measurements across your PDF documents.
-## Enabling Line Angle Constraints
-To enable line angle constraints, configure the `enableLineAngleConstraints` property within the `annotationDrawingOptions` of the PDF Viewer. When enabled, line-type annotations are automatically restricted to fixed angles.
+## Enable line angle constraints
+Configure the `enableLineAngleConstraints` property within `annotationDrawingOptions`. When enabled, supported line-type annotations snap to fixed angles.
The following code demonstrates how to enable line angle constraints:
@@ -22,7 +21,7 @@ The following code demonstrates how to enable line angle constraints:
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl: "https://cdn.syncfusion.com/ej2/31.1.17/dist/ej2-pdfviewer-lib",
+ resourceUrl: "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
annotationDrawingOptions : {enableLineAngleConstraints : true, restrictLineAngleTo: 90}
});
@@ -49,50 +48,49 @@ The `enableLineAngleConstraints` property activates angle snapping for line-base
- Automatic angle snapping during the drawing
- Enhanced precision for technical drawings and measurements
-- Desktop support: Hold **Shift** while drawing to activate constraints
+- Desktop behavior: hold Shift while drawing to toggle constraints (when disabled, Shift temporarily enables; when enabled, Shift enforces snapping)
- Real-time visual feedback showing angle snapping behavior
### restrictLineAngleTo
-The `restrictLineAngleTo` property defines the angle increment (in degrees) that constrains line-based annotations. The default value is **45 degrees**.
+Defines the angle increment (in degrees) used to constrain supported annotations. The default is 45.
-**Angle Snapping Rules:**
+Angle snapping rules:
- The initial drawing direction is treated as the 0° reference point
- Snapped angles are calculated based on the increment
- If the increment doesn’t divide 360 evenly, angles reset after 360°
-**Examples:**
+Examples:
- restrictLineAngleTo: 45 → Snapped angles: 0°, 45°, 90°, 135°, 180°, 225°, 270°, 315°, 360°
- restrictLineAngleTo: 100 → Snapped angles: 0°, 100°, 200°, 300°, 360°
-## Working with Constrained Annotations
+## Work with constrained annotations
### Drawing Behavior
When line angle constraints are enabled:
-**Initial Drawing:** Start drawing a line, arrow, polygon, distance, perimeter, area, or volume as usual.
-**Angle Snapping:** The line snaps to the nearest allowed angle.
-**Visual Feedback:** Snapped angle is shown in real time.
-**Completion:** Release to complete the annotation.
+- Start drawing a supported annotation (Line, Arrow, Polyline, Distance, or Perimeter).
+- The segment snaps to the nearest allowed angle.
+- A visual indicator reflects snapping in real time.
+- Release to complete the annotation.
### Keyboard Shortcuts
-**Desktop Platforms:**
-
-**Shift + Drag:** Enables angle snapping even when `enableLineAngleConstraints` is false.
+Desktop platforms:
+- Shift + drag: toggles snapping. If constraints are disabled, Shift temporarily enables them; if enabled, Shift enforces snapping.
### Selector-Based Modifications
When modifying existing line annotations using selectors:
- Constraints apply based on the original line direction.
-- The reference angle (0°) is determined by the lines current orientation.
-- Only lines and arrows support constraint snapping during modification.
-- Adjustments snap to the configured angle increment relative to the original direction.
+- The reference angle (0°) is determined by the line’s current orientation.
+- Constraint snapping during modification is supported for Line and Arrow.
+- Adjustments snap to the configured angle increment.
-[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
+[View a sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
-N> You can refer to our [JavaScript PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/javascript-pdf-viewer) feature tour page for its groundbreaking feature representations. You can also explore our [JavaScript PDF Viewer example](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples) to know how to render and configure the PDF Viewer.
+N> Refer to the JavaScript PDF Viewer [feature tour](https://www.syncfusion.com/pdf-viewer-sdk/javascript-pdf-viewer) for feature highlights. Explore the [JavaScript PDF Viewer examples](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples) to learn how to render and configure the PDF Viewer.
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/measurement-annotation.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/measurement-annotation.md
index fd2dfe3a1..5bda021b5 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/measurement-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/measurement-annotation.md
@@ -1,17 +1,16 @@
---
layout: post
-title: Measurement annotation in Javascript PDF Viewer control | Syncfusion
-description: Learn here all about Measurement annotation in Syncfusion Javascript PDF Viewer control of Syncfusion Essential JS 2 and more.
+title: Measurement annotation in JavaScript PDF Viewer control | Syncfusion
+description: Learn about measurement annotations in the Syncfusion JavaScript PDF Viewer (Essential JS 2): distance, perimeter, area, radius, and volume.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Measurement annotation in Javascript PDF Viewer control
+# Measurement annotation in JavaScript PDF Viewer control
-The PDF Viewer provides the options to add measurement annotations. You can measure the page annotations with the help of measurement annotation. The supported measurement annotations in the PDF Viewer control are:
+The PDF Viewer provides options to add measurement annotations. The supported measurement annotations are:
* Distance
* Perimeter
@@ -19,22 +18,22 @@ The PDF Viewer provides the options to add measurement annotations. You can meas
* Radius
* Volume
-
+
## Adding measurement annotations to the PDF document
The measurement annotations can be added to the PDF document using the annotation toolbar.
* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Click the **Measurement Annotation** dropdown button. A dropdown pop-up will appear and shows the measurement annotations to be added.
-* Select the measurement type to be added to the page in the dropdown pop-up. It enables the selected measurement annotation mode.
-* You can measure and add the annotation over the pages of the PDF document.
+* Click the **Measurement Annotation** drop-down button. The pop-up lists available measurement annotation types.
+* Select a measurement type to enable its annotation mode.
+* Measure and add annotations on the pages of the PDF document.
-In the pan mode, if the measurement annotation mode is entered, the PDF Viewer control will switch to text select mode.
+When in pan mode, selecting a measurement annotation switches the PDF Viewer to text select mode.

-Refer to the following code snippet to switch to distance annotation mode.
+The following example switches to distance annotation mode.
```html
@@ -44,7 +43,7 @@ Refer to the following code snippet to switch to distance annotation mode.
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -81,11 +80,11 @@ if (distanceMode) {
{% endhighlight %}
{% endtabs %}
-## Adding a measurement annotation to the PDF document Programmatically
+## Add a measurement annotation to the PDF document programmatically
-With the PDF Viewer library, you can add a measurement annotation to the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation/#addannotation) method.
+The PDF Viewer library allows adding measurement annotations programmatically using the [addAnnotation()](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation/#annotation) method.
-Here's a example of how you can utilize the **addAnnotation()** method to include a measurement annotation programmatically:
+Here is an example showing how to add measurement annotations programmatically using addAnnotation():
```html
@@ -100,7 +99,7 @@ Here's a example of how you can utilize the **addAnnotation()** method to includ
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -252,11 +251,11 @@ if (addVolumeAnnotation) {
{% endhighlight %}
{% endtabs %}
-## Edit the existing measurement annotation programmatically
+## Edit an existing measurement annotation programmatically
-To modify existing measurement annotation in the Syncfusion PDF viewer programmatically, you can use the **editAnnotation()** method.
+To modify an existing measurement annotation programmatically, use the editAnnotation() method.
-Here is an example of how you can use the **editAnnotation()** method:
+Here is an example of using editAnnotation():
```html
@@ -271,7 +270,7 @@ Here is an example of how you can use the **editAnnotation()** method:
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -459,43 +458,43 @@ if (editVolumeAnnotation) {
{% endhighlight %}
{% endtabs %}
-## Editing the properties of measurement annotation
+## Edit the properties of measurement annotations
-The fill color, stroke color, thickness, and opacity of the measurement annotation can be edited using the Edit Color tool, Edit Stroke Color tool, Edit Thickness tool, and Edit Opacity tool in the annotation toolbar.
+The fill color, stroke color, thickness, and opacity can be edited using the Edit Color, Edit Stroke Color, Edit Thickness, and Edit Opacity tools in the annotation toolbar.
-### Editing fill color
+### Edit fill color
The fill color of the annotation can be edited using the color palette provided in the Edit Color tool.

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

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

-### Editing opacity
+### Edit opacity
The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.

-### Editing the line properties
+### Edit the line properties
-The properties of the line shapes such as distance and perimeter annotations can be edited using the Line properties window. It can be opened by selecting the Properties option in the context menu that appears on right-clicking the distance and perimeter annotations.
+Line-based measurement annotations (distance and perimeter) have additional options in the Line Properties window. Open it by right-clicking the annotation and selecting Properties from the context menu.

-## Setting default properties during control initialization
+## Set default properties during control initialization
-The properties of the shape annotations can be set before creating the control using distanceSettings, perimeterSettings, areaSettings, radiusSettings and volumeSettings.
+Default properties for measurement annotations can be set before creating the control using distanceSettings, perimeterSettings, areaSettings, radiusSettings, and volumeSettings.
Refer to the following code snippet to set the default annotation settings.
@@ -504,7 +503,7 @@ Refer to the following code snippet to set the default annotation settings.
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
distanceSettings : {fillColor: 'blue', opacity: 0.6, strokeColor: 'green'},
perimeterSettings : {fillColor: 'green', opacity: 0.6, strokeColor: 'blue'},
areaSettings :{fillColor: 'yellow', opacity: 0.6, strokeColor: 'orange'},
@@ -559,7 +558,7 @@ The properties of scale ratio for measurement annotation can be set before creat
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
measurementSettings = {scaleRatio: 2, conversionUnit: 'cm', displayUnit: 'cm'},
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/shape-annotation.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/shape-annotation.md
index cba03bdc0..3b547003b 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/shape-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/shape-annotation.md
@@ -1,17 +1,16 @@
---
layout: post
-title: Shape annotation in Javascript PDF Viewer control | Syncfusion
-description: Learn here all about Shape annotation in Syncfusion Javascript PDF Viewer control of Syncfusion Essential JS 2 and more.
+title: Shape annotation in JavaScript PDF Viewer control | Syncfusion
+description: Learn about shape annotations in the Syncfusion JavaScript PDF Viewer (Essential JS 2), including add, edit, delete, and default settings.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Shape annotation in Javascript PDF Viewer control
+# Shape annotation in JavaScript PDF Viewer control
-The PDF Viewer control provides the options to add, edit, and delete the shape annotations. The shape annotation types supported in the PDF Viewer control are:
+The PDF Viewer control provides options to add, edit, and delete shape annotations. The supported shape annotation types are:
* Line
* Arrow
@@ -19,20 +18,20 @@ The PDF Viewer control provides the options to add, edit, and delete the shape a
* Circle
* Polygon
-
+
## Adding a shape annotation to the PDF document
Shape annotations can be added to the PDF document using the annotation toolbar.
* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Click the **Shape Annotation** drop-down button. A drop-down pop-up will appear and shows the shape annotations to be added.
-* Select the shape types to be added to the page in the drop-down pop-up. It enables the selected shape annotation mode.
-* You can add the shapes over the pages of the PDF document.
+* Click the **Shape Annotation** drop-down button. The pop-up lists available shape annotation types.
+* Select a shape type to enable its annotation mode.
+* Draw the shape on the pages of the PDF document.
-N> While you're in the pan mode, for navigating through the document, and you click on the shape annotation button to add the shape annotation , the PDF Viewer control will smoothly transition to text select mode. This seamless transition ensures a fluid experience when switching between different interaction modes within the PDF Viewer interface.
+N> When in pan mode and a shape annotation tool is selected, the PDF Viewer switches to text select mode automatically to ensure a smooth interaction experience.
-
+
Refer to the following code sample to switch to the circle annotation mode.
@@ -45,7 +44,7 @@ Refer to the following code sample to switch to the circle annotation mode.
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib"
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib"
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -83,11 +82,11 @@ if (circleAnnotationButton) {
{% endhighlight %}
{% endtabs %}
-## Adding a Shape annotation to the PDF document Programmatically
+## Add a shape annotation to the PDF document programmatically
-With the PDF Viewer library, you can add a Shape annotation to the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation/#addannotation) method.
+The PDF Viewer library allows adding a shape annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation/#addannotation) method.
-Here's a example of how you can utilize the **addAnnotation()** method to include a Shape annotation programmatically:
+Here is an example showing how to add shape annotations programmatically using addAnnotation():
```html
@@ -101,7 +100,7 @@ Here's a example of how you can utilize the **addAnnotation()** method to includ
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -255,11 +254,11 @@ if (addPolygonAnnotation) {
{% endhighlight %}
{% endtabs %}
-## Edit the existing shape annotation programmatically
+## Edit an existing shape annotation programmatically
-To modify existing shape annotation in the Syncfusion PDF viewer programmatically, you can use the **editAnnotation()** method.
+To modify an existing shape annotation programmatically, use the editAnnotation() method.
-Here is an example of how you can use the **editAnnotation()** method:
+Here is an example of using editAnnotation():
```html
@@ -273,7 +272,7 @@ Here is an example of how you can use the **editAnnotation()** method:
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -461,50 +460,50 @@ if (editPolygonAnnotation) {
## Editing the properties of the shape annotation
-The fill color, stroke color, thickness, and opacity of the shape annotation can be edited using the Edit color tool, Edit stroke color tool, Edit thickness tool, and Edit opacity tool in the annotation toolbar.
+The fill color, stroke color, thickness, and opacity of shape annotations can be edited using the Edit Color, Edit Stroke Color, Edit Thickness, and Edit Opacity tools in the annotation toolbar.
### Editing fill color
The fill color of the annotation can be edited using the color palette provided in the Edit Color tool.
-
+
### Editing stroke color
The stroke color of the annotation can be edited using the color palette provided in the Edit Stroke Color tool.
-
+
### Editing thickness
The thickness of the border of the annotation can be edited using the range slider provided in the Edit Thickness tool.
-
+
### Editing opacity
The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.
-
+
### Editing the line properties
-The properties of the line shapes such as line and arrow annotations can be edited using the Line Properties window. It can be opened by selecting the Properties option in the context menu that appears on right-clicking the line and arrow annotations.
+Line and arrow annotations have additional options in the Line Properties window. Open it by right-clicking a line or arrow annotation and selecting Properties from the context menu.
Refer to the following code sample to set the default annotation settings.
-
+
-## Setting default properties during the control initialization
+## Set default properties during control initialization
-The properties of the shape annotations can be set before creating the control using LineSettings, ArrowSettings, RectangleSettings, CircleSettings, and PolygonSettings.
+Default properties for shape annotations can be set before creating the control using LineSettings, ArrowSettings, RectangleSettings, CircleSettings, and PolygonSettings.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
lineSettings : {fillColor: 'blue', opacity: 0.6, strokeColor: 'green'},
arrowSettings : {fillColor: 'green', opacity: 0.6, strokeColor: 'blue'},
rectangleSettings : {fillColor: 'yellow', opacity: 0.6, strokeColor: 'orange'},
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/signature-annotation.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/signature-annotation.md
index e399be281..dec244e46 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/signature-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/signature-annotation.md
@@ -1,34 +1,33 @@
---
layout: post
-title: Handwritten signature in Javascript PDF Viewer control | Syncfusion
-description: Learn here all about Handwritten signature in Syncfusion Javascript PDF Viewer control of Syncfusion Essential JS 2 and more.
+title: Handwritten signature in JavaScript PDF Viewer control | Syncfusion
+description: Learn about handwritten signatures in the Syncfusion JavaScript PDF Viewer (Essential JS 2): add, enable/disable, and edit properties.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Handwritten signature Javascript PDF Viewer control
+# Handwritten signature in JavaScript PDF Viewer control
-The PDF Viewer control supports adding handwritten signatures to a PDF document. The handwritten signature reduces the paper work of reviewing the content and verifies it digitally.
+The PDF Viewer control supports adding handwritten signatures to a PDF document. Handwritten signatures reduce paperwork and enable digital verification.
## Adding a handwritten signature to the PDF document
The handwritten signature can be added to the PDF document using the annotation toolbar.
* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Select the **HandWritten Signature** button in the annotation toolbar. The signature panel will appear.
+* Select the **HandWritten Signature** button in the annotation toolbar. The signature panel appears.
-
+
-* Draw the signature in the signature panel.
+* Draw the signature in the panel.
-
+
-* Then click **Create** button and move the signature using the mouse and place them in the desired location.
+* Click **Create**, move the signature, and place it at the desired location.
-
+
Refer to the following code sample to switch to the handwritten signature mode programmatically.
@@ -40,7 +39,7 @@ Refer to the following code sample to switch to the handwritten signature mode p
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -76,16 +75,16 @@ if (handWrittenSignature) {
{% endtabs %}
-## How to enable the handwritten signature
+## Enable the handwritten signature
-The following code snippet describes how to enable the handwritten signature in PDF Viewer. When the value is set to `false` it disables the handwritten signature.
+The following example enables or disables the handwritten signature in the PDF Viewer. Setting the value to `false` disables the feature.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
enableHandwrittenSignature : false,
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
@@ -107,11 +106,11 @@ pdfviewer.appendTo('#PdfViewer');
{% endhighlight %}
{% endtabs %}
-## Adding Handwritten signature programatically to the PDF document
+## Add a handwritten signature programmatically to the PDF document
With the PDF Viewer library, you can programmatically add a handwritten signature to the PDF Viewer control using the [**addAnnotation()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation/#annotation) method.
-Here is an example of how you can use the **addAnnotation()** method to add the Handwritten signature programmatically
+Here is an example of adding a handwritten signature programmatically using addAnnotation():
```html
@@ -122,7 +121,7 @@ Here is an example of how you can use the **addAnnotation()** method to add the
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/27.1.48/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -234,24 +233,24 @@ if(addHandwrittenSignature){
[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to/Add%20Handwritten%20Signature%20Programmatically)
-## Editing the properties of handwritten signature
+## Edit the properties of handwritten signatures
-The stroke color, border thickness, and opacity of the handwritten signature can be edited using the edit stroke color tool, edit thickness tool, and edit opacity tool in the annotation toolbar.
+Stroke color, border thickness, and opacity can be edited using the Edit Stroke Color, Edit Thickness, and Edit Opacity tools in the annotation toolbar.
-### Editing stroke color
+### Edit stroke color
-The stroke color of the annotation can be edited using the color palette provided in the Edit Stroke Color tool.
+Edit the stroke color using the color palette in the Edit Stroke Color tool.
-
+
-### Editing thickness
+### Edit thickness
-The thickness of the border of the annotation can be edited using the range slider provided in the Edit Thickness tool.
+Edit border thickness using the range slider in the Edit Thickness tool.
-
+
-### Editing opacity
+### Edit opacity
-The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.
+Edit opacity using the range slider in the Edit Opacity tool.
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/stamp-annotation.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/stamp-annotation.md
index b1cd2ae15..0af4ee5c8 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/stamp-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/stamp-annotation.md
@@ -1,17 +1,16 @@
---
layout: post
-title: Stamp annotation in Javascript PDF Viewer control | Syncfusion
-description: Learn here all about Stamp annotation in Syncfusion Javascript PDF Viewer control of Syncfusion Essential JS 2 and more.
+title: Stamp annotation in JavaScript PDF Viewer control | Syncfusion
+description: Learn about stamp annotations in the Syncfusion JavaScript PDF Viewer (Essential JS 2): dynamic, sign here, standard business, and custom stamps.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Stamp annotation in Javascript PDF Viewer control
+# Stamp annotation in JavaScript PDF Viewer control
-The PDF Viewer control provides options to add, edit, delete, and rotate the following stamp annotation in the PDF documents:
+The PDF Viewer control provides options to add, edit, delete, and rotate the following stamp annotations in PDF documents:
* Dynamic
* Sign Here
@@ -20,24 +19,24 @@ The PDF Viewer control provides options to add, edit, delete, and rotate the fol

-## Adding stamp annotations to the PDF document
+## Add stamp annotations to the PDF document
The stamp annotations can be added to the PDF document using the annotation toolbar.
* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Click the **Stamp Annotation** drop-down button. A drop-down pop-up will appear and shows the stamp annotations to be added.
+* Click the **Stamp Annotation** drop-down button. The pop-up lists available stamp annotation types.

-* Select the annotation type to be added to the page in the pop-up.
+* Select a stamp type to enable its annotation mode.

-* You can add the annotation over the pages of the PDF document.
+* Place the stamp on the pages of the PDF document.
-N> While you're in the pan mode, for navigating through the document, and you click on the stamp annotation button to add the stamp annotation , the PDF Viewer control will smoothly transition to text select mode. This seamless transition ensures a fluid experience when switching between different interaction modes within the PDF Viewer interface.
+N> When in pan mode and a stamp annotation tool is selected, the PDF Viewer switches to text select mode automatically for a smooth interaction experience.
-Refer to the following code sample to switch to the stamp annotation mode.
+The following examples switch to stamp annotation modes.
```html
@@ -49,7 +48,7 @@ Refer to the following code sample to switch to the stamp annotation mode.
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib"
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib"
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -120,23 +119,23 @@ if (standardBusinessStamp) {
{% endhighlight %}
{% endtabs %}
-## Adding custom stamp to the PDF document
+## Add a custom stamp to the PDF document
* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Click the **Stamp Annotation** drop-down button. A drop-down pop-up will appear and shows the stamp annotations to be added.
+* Click the **Stamp Annotation** drop-down button. The pop-up lists available stamp annotation types.
* Click the Custom Stamp button.

-* The file explorer dialog will appear, choose the image and then add the image to the PDF page.
+* In the file explorer dialog, choose an image and add it to the PDF page.
->The JPG and JPEG image format is only supported in the custom stamp annotations.
+>Only JPG and JPEG image formats are supported for custom stamp annotations.
-## Adding a Stamp annotation to the PDF document Programmatically
+## Add a stamp annotation to the PDF document programmatically
-With the PDF Viewer library, you can add a Stamp annotation to the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#addannotation) method.
+The PDF Viewer library allows adding a stamp annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#annotation) method.
-Here's a example of how you can utilize the **addAnnotation()** method to include a Stamp annotation programmatically:
+Here are examples showing how to add stamp annotations programmatically using addAnnotation():
```html
@@ -150,7 +149,7 @@ Here's a example of how you can utilize the **addAnnotation()** method to includ
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -283,11 +282,11 @@ if (customStamp) {
{% endhighlight %}
{% endtabs %}
-## Edit the existing sticky note annotation programmatically
+## Edit an existing stamp annotation programmatically
-To modify existing sticky note annotation in the Syncfusion PDF viewer programmatically, you can use the **editAnnotation()** method.
+To modify an existing stamp annotation programmatically, use the editAnnotation() method.
-Here is an example of how you can use the **editAnnotation()** method:
+Here is an example of using editAnnotation():
```html
@@ -298,7 +297,7 @@ Here is an example of how you can use the **editAnnotation()** method:
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -348,19 +347,18 @@ if (editAnnotation) {
{% endhighlight %}
{% endtabs %}
-## Setting default properties during control initialization
+## Set default properties during control initialization
-The properties of the stamp annotation can be set before creating the control using the StampSettings.
+Default properties for stamp annotations can be set before creating the control using StampSettings.
-After editing the default opacity using the Edit Opacity tool, they will be changed to the selected values.
-Refer to the following code sample to set the default sticky note annotation settings.
+After changing default opacity using the Edit Opacity tool, the selected value is applied. The following example sets default stamp annotation settings.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
stampSettings : {opacity: 0.3, author: 'Guest User'}
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/sticky-notes-annotation.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/sticky-notes-annotation.md
index 36248a481..e5a5c63bd 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/sticky-notes-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/sticky-notes-annotation.md
@@ -1,44 +1,42 @@
---
layout: post
-title: Sticky notes in Javascript PDF Viewer control | Syncfusion
-description: Learn here all about Sticky notes in Syncfusion Javascript PDF Viewer control of Syncfusion Essential JS 2 and more.
+title: Sticky notes in JavaScript PDF Viewer control | Syncfusion
+description: Learn about sticky note annotations in the Syncfusion JavaScript PDF Viewer (Essential JS 2): add, edit, delete, and default settings.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Sticky notes in Javascript PDF Viewer control
+# Sticky notes in JavaScript PDF Viewer control
-The PDF Viewer control provides the options to add, edit, and delete the sticky note annotations in the PDF document.
+The PDF Viewer control provides options to add, edit, and delete sticky note annotations in the PDF document.

-## Adding a sticky note annotation to the PDF document
+## Add a sticky note annotation to the PDF document
Sticky note annotations can be added to the PDF document using the annotation toolbar.
-* Click the **Comments** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Click the position where you want to add sticky note annotation in the PDF document.
-* Sticky note annotation will be added in the clicked positions.
+* Click the **Comments** button in the PDF Viewer toolbar. The annotation toolbar appears below it.
+* Click the position where the sticky note annotation should be added.
+* The sticky note annotation is added at the clicked position.

- Annotation comments can be added to the PDF document using the comment panel.
+Annotation comments can be added using the comment panel.
-* Select a Sticky note annotation in the PDF document and right-click it.
-* Select the Comment option in the context menu that appears.
-* Now, you can add Comments, Reply, and Status using the Comment Panel.
-* Now, you can add Comments, Reply, and Status using the Comment Panel.
+* Select a sticky note annotation in the PDF document and right-click it.
+* Select Comment from the context menu.
+* Add comments, replies, and status using the comment panel.

-## Adding a sticky note annotation to the PDF document Programmatically
+## Add a sticky note annotation to the PDF document programmatically
-With the PDF Viewer library, you can add a sticky note annotation to the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#addannotation) method.
+The PDF Viewer library allows adding a sticky note annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#addannotation) method.
-Here's a example of how you can utilize the **addAnnotation()** method to include a sticky note annotation programmatically:
+Here is an example showing how to add a sticky note annotation programmatically using addAnnotation():
```html
@@ -49,7 +47,7 @@ Here's a example of how you can utilize the **addAnnotation()** method to includ
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -95,11 +93,11 @@ if (stickyNote) {
{% endhighlight %}
{% endtabs %}
-## Edit the existing sticky note annotation programmatically
+## Edit an existing sticky note annotation programmatically
-To modify existing sticky note annotation in the Syncfusion PDF viewer programmatically, you can use the **editAnnotation()** method.
+To modify an existing sticky note annotation programmatically, use the editAnnotation() method.
-Here is an example of how you can use the **editAnnotation()** method:
+Here is an example of using editAnnotation():
```html
@@ -110,7 +108,7 @@ Here is an example of how you can use the **editAnnotation()** method:
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -162,38 +160,38 @@ if (stickyNote) {
{% endhighlight %}
{% endtabs %}
-## Editing the properties of the sticky note annotation
+## Edit the properties of sticky note annotations
### Editing opacity
-The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.
+Edit opacity using the range slider in the Edit Opacity tool.

### Editing comments
-The comment, comment reply, and comment status of the annotation can be edited using the Comment Panel.
+Comment text, replies, and status can be edited using the comment panel.
-* Open the comment panel using the Comment Panel button showing in the annotation toolbar.
+* Open the comment panel using the Comment Panel button in the annotation toolbar.

-You can modify or delete the comments or comments replay and it’s status using the menu option provided in the comment panel.
+Modify or delete comments or replies, and change status using the menu options in the comment panel.

-## Setting default properties during the control initialization
+## Set default properties during control initialization
-The properties of the sticky note annotation can be set before creating the control using the StickyNoteSettings.
+Default properties for sticky note annotations can be set before creating the control using StickyNotesSettings.
-After editing the default opacity using the Edit Opacity tool, they will be changed to the selected values. Refer to the following code sample to set the default sticky note annotation settings.
+After changing default opacity using the Edit Opacity tool, the selected value is applied. The following example sets default sticky note annotation settings.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
stickyNotesSettings : {author: 'Syncfusion'}
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
@@ -215,16 +213,16 @@ pdfviewer.appendTo('#PdfViewer');
{% endhighlight %}
{% endtabs %}
-## Disabling sticky note annotations
+## Disable sticky note annotations
-The PDF Viewer control provides an option to disable the sticky note annotations feature. The code sample for disabling the feature is as follows.
+The PDF Viewer control provides an option to disable sticky note annotations. The following example disables the feature.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
enableStickyNotesAnnotation : false
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/text-markup-annotation.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/text-markup-annotation.md
index f93b9c7b9..4f9df6aea 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/text-markup-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/annotations/text-markup-annotation.md
@@ -1,40 +1,39 @@
---
layout: post
-title: Text markup annotation in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Text markup annotation in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Text markup annotation in JavaScript PDF Viewer | Syncfusion
+description: Learn to add, edit, delete, and customize text markup annotations like highlight, underline, and squiggly in Syncfusion JavaScript PDF Viewer.
platform: document-processing
-control: Text markup annotation
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Text markup annotation in Javascript Pdfviewer control
+# Text markup annotation in JavaScript PDF Viewer
-The PDF Viewer control provides the options to add, edit, and delete text markup annotations such as highlight, underline, strikethrough and squiggly annotations in the PDF document.
+The PDF Viewer provides options to add, edit, and delete text markup annotations, including Highlight, Underline, Strikethrough, and Squiggly.

-## Highlight a text
+## Highlight text
-There are two ways to highlight a text in the PDF document:
+There are two ways to highlight text:
1. Using the context menu
- * Select a text in the PDF document and right-click it.
- * Select **Highlight** option in the context menu that appears.
+* Select text in the PDF document and right-click it.
+* Select **Highlight** in the context menu.

2. Using the annotation toolbar
- * Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
- * Select the **Highlight** button in the annotation toolbar. It enables the highlight mode.
- * Select the text and the highlight annotation will be added.
- * You can also select the text and apply the highlight annotation using the **Highlight** button.
+* Click the **Edit Annotation** button in the PDF Viewer toolbar to open the annotation toolbar.
+* Select **Highlight** to enable highlight mode.
+* Select text to add the highlight annotation.
+* Alternatively, select text first and then click **Highlight**.

-In the pan mode, if the highlight mode is entered, the PDF Viewer control will switch to text select mode to enable the text selection for highlighting the text.
+When pan mode is active and a text markup mode is entered, the PDF Viewer switches to text selection mode to enable selection.
Refer to the following code snippet to switch to highlight mode.
@@ -64,11 +63,11 @@ Add the below `serviceUrl` in the `index.html` file
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/es5-text-markup-annotation/highlight-normal-mode-cs1/index.html" %}
-## Highlight a text programmatically
+## Highlight text programmatically
-The PDF Viewer library enables you to programmatically highlight text within the PDF Viewer control using the [**addAnnotation()**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#addannotation) method.
+Programmatically add highlights using the [addAnnotation](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation/#addannotation) method.
-Here's an example of how you can use the **addAnnotation()** method to apply highlighting programmatically:
+Example:
```html
@@ -78,7 +77,7 @@ Here's an example of how you can use the **addAnnotation()** method to apply hig
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -120,21 +119,22 @@ if (highlight) {
{% endhighlight %}
{% endtabs %}
-## Underline a text
+## Underline text
-There are two ways to underline a text in the PDF document:
+There are two ways to underline text:
1. Using the context menu
- * Select a text in the PDF document and right-click it.
- * Select **Underline** option in the context menu that appears.
+* Select text in the PDF document and right-click it.
+* Select **Underline** in the context menu.

+
2. Using the annotation toolbar
- * Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
- * Select the **Underline** button in the annotation toolbar. It enables the underline mode.
- * Select the text and the underline annotation will be added.
- * You can also select the text and apply the underline annotation using the **Underline** button.
+* Click the **Edit Annotation** button in the PDF Viewer toolbar to open the annotation toolbar.
+* Select **Underline** to enable underline mode.
+* Select text to add the underline annotation.
+* Alternatively, select text first and then click **Underline**.

@@ -169,11 +169,11 @@ Add the below `serviceUrl` in the `index.html` file
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/es5-text-markup-annotation/underline-normal-mode-cs1/index.html" %}
-## Underline a text programmatically
+## Underline text programmatically
-The PDF Viewer library enables you to programmatically Underline text within the PDF Viewer control using the [**addAnnotation()**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#addannotation) method.
+Programmatically add underlines using the [addAnnotation](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation/#addannotation) method.
-Here's an example of how you can use the **addAnnotation()** method to apply Underline programmatically:
+Example:
```html
@@ -183,7 +183,7 @@ Here's an example of how you can use the **addAnnotation()** method to apply Und
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -226,21 +226,22 @@ if (underline) {
{% endhighlight %}
{% endtabs %}
-## Strikethrough a text
+## Strikethrough text
-There are two ways to strikethrough a text in the PDF document:
+There are two ways to strikethrough text:
1. Using the context menu
- * Select a text in the PDF document and right-click it.
- * Select **Strikethrough** option in the context menu that appears.
+* Select text in the PDF document and right-click it.
+* Select **Strikethrough** in the context menu.

+
2. Using the annotation toolbar
- * Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
- * Select the **Strikethrough** button in the annotation toolbar. It enables the strikethrough mode.
- * Select the text and the strikethrough annotation will be added.
- * You can also select the text and apply the strikethrough annotation using the **Strikethrough** button.
+* Click the **Edit Annotation** button in the PDF Viewer toolbar to open the annotation toolbar.
+* Select **Strikethrough** to enable strikethrough mode.
+* Select text to add the strikethrough annotation.
+* Alternatively, select text first and then click **Strikethrough**.

@@ -260,7 +261,7 @@ Add the below `serviceUrl` in the `index.html` file
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/es5-text-markup-annotation/strikethrough-mode-cs1/index.html" %}
-Refer to the following code snippet to switch back to normal mode from underline mode.
+Refer to the following code snippet to switch back to normal mode from strikethrough mode.
{% tabs %}
{% highlight html tabtitle="index.html" %}
@@ -274,11 +275,11 @@ Add the below `serviceUrl` in the `index.html` file
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/es5-text-markup-annotation/strikethrough-normal-mode-cs1/index.html" %}
-## Strikethrough a text programmatically
+## Strikethrough text programmatically
-The PDF Viewer library enables you to programmatically Strikethrough text within the PDF Viewer control using the [**addAnnotation()**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#addannotation) method.
+Programmatically add strikethrough using the [addAnnotation](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#addannotation) method.
-Here's an example of how you can use the **addAnnotation()** method to apply Strikethrough programmatically:
+Example:
```html
@@ -288,7 +289,7 @@ Here's an example of how you can use the **addAnnotation()** method to apply Str
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -330,21 +331,21 @@ if (strikethrough) {
{% endhighlight %}
{% endtabs %}
-## Squiggly a text
+## Add squiggly to text
-There are two ways to add squiggly to a text in the PDF document:
+There are two ways to add squiggly to text:
1. Using the context menu
- * Select a text in the PDF document and right-click it.
- * Select **Squiggly** option in the context menu that appears.
+* Select text in the PDF document and right-click it.
+* Select **Squiggly** in the context menu.

2. Using the annotation toolbar
- * Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
- * Select the **Squiggly** button in the annotation toolbar. It enables the squiggly mode.
- * Select the text and the squiggly annotation will be added.
- * You can also select the text and apply the squiggly annotation using the **Squiggly** button.
+* Click the **Edit Annotation** button in the PDF Viewer toolbar to open the annotation toolbar.
+* Select **Squiggly** to enable squiggly mode.
+* Select text to add the squiggly annotation.
+* Alternatively, select text first and then click **Squiggly**.

@@ -378,11 +379,11 @@ Add the below `serviceUrl` in the `index.html` file
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/es5-text-markup-annotation/squiggly-normal-mode-cs1/index.html" %}
-## Squiggly a text programmatically
+## Add squiggly to text programmatically
-The PDF Viewer library enables you to programmatically add squiggly to text within the PDF Viewer control using the [**addAnnotation()**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#addannotation) method.
+Programmatically add squiggly using the [addAnnotation](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#addannotation) method.
-Here's an example of how you can use the **addAnnotation()** method to apply squiggly programmatically:
+Example:
```html
@@ -393,7 +394,7 @@ Here's an example of how you can use the **addAnnotation()** method to apply squ
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/30.1.37/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -437,39 +438,39 @@ if (squiggly) {
## Deleting a text markup annotation
-The selected annotation can be deleted by the following ways:
+The selected annotation can be deleted in the following ways:
-1. Using Delete key
- * Select the annotation to be deleted.
- * Click the Delete key in the keyboard. The selected annotation will be deleted.
+1. Using the Delete/Backspace key
+ * Select the annotation.
+ * Press Delete (or Backspace). The selected annotation is removed.
2. Using the annotation toolbar
- * Select the annotation to be deleted.
- * Click the **Delete Annotation** button in the annotation toolbar. The selected annotation will be deleted.
+ * Select the annotation.
+ * Click **Delete Annotation** in the annotation toolbar. The selected annotation is removed.

-## Editing the properties of the text markup annotation
+## Edit text markup annotation properties
The color and the opacity of the text markup annotation can be edited using the Edit Color tool and the Edit Opacity tool in the annotation toolbar.
-### Editing color
+### Edit color
-The color of the annotation can be edited using the color palette provided in the Edit Color tool.
+Use the color palette in the Edit Color tool to change the annotation color.

-### Editing opacity
+### Edit opacity
-The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.
+Use the range slider in the Edit Opacity tool to change annotation opacity.

-## Setting default properties during control initialization
+## Set default properties during control initialization
-The properties of the text markup annotation can be set before creating the control using highlightSettings, underlineSettings, strikethroughSettings and squigglySettings.
+Set default properties before creating the control using `highlightSettings`, `underlineSettings`, `strikethroughSettings`, and `squigglySettings`.
->After editing the default color and opacity using the Edit Color tool and Edit Opacity tool, they will be changed to the selected values.
+> After editing default color and opacity using the Edit Color and Edit Opacity tools, the values update to the selected settings.
Refer to the following code snippet to set the default annotation settings.
@@ -503,22 +504,22 @@ pdfviewer.appendTo('#PdfViewer');
{% endhighlight %}
{% endtabs %}
-## Performing undo and redo
+## Perform undo and redo
-The PDF Viewer performs undo and redo for the changes made in the PDF document. In text markup annotation, undo and redo actions are provided for:
+The PDF Viewer supports undo and redo for changes. For text markup annotations, undo and redo are provided for:
* Inclusion of the text markup annotations.
* Deletion of the text markup annotations.
* Change of either color or opacity of the text markup annotations.
-Undo and redo actions can be done by the following ways:
+Undo and redo actions can be performed in the following ways:
1. Using keyboard shortcuts:
- After performing a text markup annotation action, you can undo it by using Ctrl + Z shortcut and redo by using Ctrl + Y shortcut.
-2. Using toolbar:
- Undo and redo can be done using the **Undo** tool and **Redo** tool provided in the toolbar.
+ After performing a text markup annotation action, press Ctrl+Z to undo and Ctrl+Y to redo.
+2. Using the toolbar:
+ Use the **Undo** and **Redo** tools in the toolbar.
-Refer to the following code snippet for calling undo and redo actions from the client-side.
+Refer to the following code snippet to call undo and redo actions from the client side.
{% tabs %}
{% highlight html tabtitle="index.html" %}
@@ -526,19 +527,23 @@ Refer to the following code snippet for calling undo and redo actions from the c
{% endhighlight %}
{% endtabs %}
+N> To set up the **server-backed PDF Viewer**,
+Add the below `serviceUrl` in the `index.html` file
+`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
+
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/es5-text-markup-annotation/undo-redo-cs1/index.html" %}
-## Saving the text markup annotation
+## Save text markup annotations
-When you click the download tool in the toolbar, the text markup annotations will be saved in the PDF document. This action will not affect the original document.
+Click the download tool in the toolbar to save text markup annotations to the PDF document. The original document is not modified.
-## Printing the text markup annotation
+## Print text markup annotations
-When the print tool is selected in the toolbar, the PDF document will be printed along with the text markup annotations added to the pages. This action will not affect the original document.
+Click the print tool in the toolbar to print the PDF document with text markup annotations. The original document is not modified.
-## Disabling text markup annotation
+## Disable text markup annotation
-The PDF Viewer control provides an option to disable the text markup annotation feature. The code snippet for disabling the feature is as follows.
+Disable text markup annotations using the `enableTextMarkupAnnotation` property.
{% tabs %}
{% highlight js tabtitle="Standalone" %}
@@ -567,4 +572,4 @@ pdfviewer.appendTo('#PdfViewer');
## See also
* [Toolbar items](../toolbar)
-* [Feature Modules](../feature-module)
+* [Feature modules](../feature-module)
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/download.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/download.md
index 6190aa153..4817bb014 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/download.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/download.md
@@ -1,14 +1,13 @@
---
layout: post
-title: Download in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Download in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Download in Javascript PDF Viewer control | Syncfusion
+description: Learn here all about Download in Syncfusion Javascript PDF Viewer control of Syncfusion Essential JS 2 and more.
platform: document-processing
-control: Download
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Download in Javascript Pdfviewer control
+# Download in JavaScript PDF Viewer control
The PDF Viewer supports downloading the loaded PDF file. You can enable/disable the download using the following code snippet.
@@ -104,7 +103,7 @@ document.getElementById('download').addEventListener('click', function () {
The [downloadEnd](https://ej2.syncfusion.com/documentation/api/pdfviewer/#downloadend) event of the PDF viewer allows you to get the downloaded document as a base64 string.
-The following code illustrates how to get the invoke the download action in a button click to get the downloaded document as a base64 string. And load the document from base64 string in another button click.
+The following code illustrates how to get the downloaded document as a base64 string.
```
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/ej1-api-migration.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/ej1-api-migration.md
index fa866472f..b9f3cb221 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/ej1-api-migration.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/ej1-api-migration.md
@@ -1,15 +1,14 @@
---
layout: post
-title: Ej1 api migration in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Ej1 api migration in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: EJ1 API migration in Javascript PDF Viewer control | Syncfusion
+description: Learn here all about EJ1 API migration in Syncfusion Javascript PDF Viewer control of Syncfusion Essential JS 2 and more.
platform: document-processing
-control: Ej1 api migration
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Ej1 api migration in Javascript Pdfviewer control
+# EJ1 API migration in Javascript PDF Viewer control
This article describes API migration process of PDF Viewer component from Essential JS 1 to Essential JS 2.
@@ -32,7 +31,7 @@ This article describes API migration process of PDF Viewer component from Essent
| Specifies the viewer interaction mode | **Property**: *interactionMode* `$("#viewer").ejPdfViewer({ serviceUrl: '../api/PdfViewer', interactionMode: ej.PdfViewer.InteractionMode.Pan})` | **Property**: *interactionMode* `var pdfviewer = new ej.pdfviewer.PdfViewer({serviceUrl:'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer',interactionMode:"Pan"});ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch,ej.pdfviewer.Navigation,ej.pdfviewer.Print);pdfviewer.appendTo('#PdfViewer');`|
| Gets the current zoom percentage of the PDF document in viewer | **Property**: *zoomPercentage* `var pdfviewerObj = $("#viewer").data("ejPdfViewer");var zoomPercentage = pdfviewerObj.zoomPercentage;` | **Property**: *zoomPercentage* `var pdfviewerObj = document.getElementById("PdfViewer").ej2_instances[0]; var zoomPercentage = pdfviewerObj.zoomPercentage;`|
| Specifies the name of the action method in the server | **Property**: *serverActionSettings* `$("#viewer").ejPdfViewer ({ServiceUrl:'../api/PdfViewer', serverActionSettings: { load: "Load", fileUpload: "FileUpload", print: "Print", download: "Download" } });});` | **Property**: *serverActionSettings* `var pdfviewer = new ej.pdfviewer.PdfViewer({serviceUrl:'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer',serverActionSettings: {load:'Upload', renderPages:'RenderPdfPages', renderComments:'RenderAnnotationComments', renderThumbnail:'RenderThumbnailImages' , unload:'Unload', print:'PrintImages', download:'Donwload' },});ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch,ej.pdfviewer.Navigation,ej.pdfviewer.Print);pdfviewer.appendTo('#PdfViewer');`|
-| Defines the settings of the PdfViewer toolbar | **Property**: *toolbarSettings* `$("#viewer").ejPdfViewer({ serviceUrl: '../api/PdfViewer', toolbarSettings: { showTooltip: false } });` | **Property**: *toolbarSettings* `var pdfviewer = new ej.pdfviewer.PdfViewer({serviceUrl:'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer', toolbarSettings: { showTooltip : true, toolbarItem: ['OpenOption']}});ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch,ej.pdfviewer.Navigation,ej.pdfviewer.Print);pdfviewer.appendTo('#PdfViewer');`|
+| Defines the settings of the PDF Viewer toolbar | **Property**: *toolbarSettings* `$("#viewer").ejPdfViewer({ serviceUrl: '../api/PdfViewer', toolbarSettings: { showTooltip: false } });` | **Property**: *toolbarSettings* `var pdfviewer = new ej.pdfviewer.PdfViewer({serviceUrl:'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer', toolbarSettings: { showTooltip : true, toolbarItem: ['OpenOption']}});ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch,ej.pdfviewer.Navigation,ej.pdfviewer.Print);pdfviewer.appendTo('#PdfViewer');`|
| Gets/sets the settings of the highlight annotation | **Property**: *highlightSettings* `$("#viewer").ejPdfViewer({ serviceUrl: '../api/PdfViewer', highlightSettings: {color: "#ffff00", author: "Guest", opacity: 0.5, subject: "highlight", modifiedDate: "2017-03-27 12:00:51", isLocked: true} });` | **Property**: *highlightSettings* `var pdfviewer = new ej.pdfviewer.PdfViewer({serviceUrl:'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer', highlightSettings: {author: 'Guest User', subject: 'Important', color: '#ffff00', opacity: 0.9, modifiedDate: ''},});ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch,ej.pdfviewer.Navigation,ej.pdfviewer.Print);pdfviewer.appendTo('#PdfViewer');`|
| Gets/sets the settings of the underline annotation | **Property**: *underlineSettings* `$("#viewer").ejPdfViewer({ serviceUrl: '../api/PdfViewer', underlineSettings: {color: "#ffff00", author: "Guest", opacity: 0.5, subject: "highlight", modifiedDate: "2017-03-27 12:00:51", isLocked: true} });` | **Property**: *underlineSettings* `var pdfviewer = new ej.pdfviewer.PdfViewer({serviceUrl:'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer', underlineSettings: {author: 'Guest User', subject: 'Important', color: '#ffff00', opacity: 0.9, modifiedDate: ''},});ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch,ej.pdfviewer.Navigation,ej.pdfviewer.Print);pdfviewer.appendTo('#PdfViewer');`|
| Gets/sets the settings of the strikethrough annotation | **Property**: *strikethroughSettings* `$("#viewer").ejPdfViewer({ serviceUrl: '../api/PdfViewer', strikethroughSettings: {color: "#ffff00", author: "Guest", opacity: 0.5, subject: "highlight", modifiedDate: "2017-03-27 12:00:51", isLocked: true} });` | **Property**: *strikethroughSettings* `var pdfviewer = new ej.pdfviewer.PdfViewer({serviceUrl:'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer', strikethroughSettings: {author: 'Guest User', subject: 'Important', color: '#ffff00', opacity: 0.9, modifiedDate: ''},});ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch,ej.pdfviewer.Navigation,ej.pdfviewer.Print);pdfviewer.appendTo('#PdfViewer');`|
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/event.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/event.md
new file mode 100644
index 000000000..873f0ab95
--- /dev/null
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/event.md
@@ -0,0 +1,1298 @@
+---
+layout: post
+title: Events in JavaScript PDF Viewer | Syncfusion
+description: Comprehensive list of events in the Syncfusion JavaScript PDF Viewer with descriptions, event arguments, and usage examples to integrate custom logic.
+platform: document-processing
+control: PDF Viewer
+documentation: ug
+domainurl: ##DomainURL##
+---
+
+# Events in JavaScript PDF Viewer
+
+The PDF Viewer component triggers events for creation, page navigation, document life cycle, context menu interactions, comments, bookmarks, download and export, hyperlinks, annotation import/export, custom keyboard commands, printing, signatures, text search, and text selection. Use these events to integrate custom logic into application workflows.
+
+The following table lists commonly used events supported by the PDF Viewer component:
+
+| Event | Description |
+| ----- | ----------- |
+| [`bookmarkClick`](#bookmarkclick) | Triggers when a bookmark item is clicked in the bookmark panel. |
+| [`buttonFieldClick`](#buttonfieldclick) | Triggers when a button form field is clicked. |
+| [`commentAdd`](#commentadd) | Triggers when a comment is added to the comment panel. |
+| [`commentDelete`](#commentdelete) | Triggers when a comment is deleted from the comment panel. |
+| [`commentEdit`](#commentedit) | Triggers when a comment is edited in the comment panel. |
+| [`commentSelect`](#commentselect) | Triggers when a comment is selected in the comment panel. |
+| [`commentStatusChanged`](#commentstatuschanged) | Triggers when a comment’s status changes in the comment panel. |
+| [`created`](#created) | Triggers during the creation of the PDF Viewer component. |
+| [`customContextMenuBeforeOpen`](#customcontextmenubeforeopen) | Fires before the custom context menu opens. |
+| [`customContextMenuSelect`](#customcontextmenuselect) | Fires when a custom context menu item is selected. |
+| [`documentLoad`](#documentload) | Triggers while loading a document into the PDF Viewer. |
+| [`documentLoadFailed`](#documentloadfailed) | Triggers when document loading fails. |
+| [`documentUnload`](#documentunload) | Triggers when the document is closed. |
+| [`downloadEnd`](#downloadend) | Triggers after a document is downloaded. |
+| [`downloadStart`](#downloadstart) | Triggers when the download action is initiated. |
+| [`exportFailed`](#exportfailed) | Triggers when exporting annotations fails. |
+| [`exportStart`](#exportstart) | Triggers when exporting annotations starts. |
+| [`exportSuccess`](#exportsuccess) | Triggers when annotations are exported successfully. |
+| [`extractTextCompleted`](#extracttextcompleted) | Triggers when text extraction is completed. |
+| [`hyperlinkClick`](#hyperlinkclick) | Triggers when a hyperlink is clicked. |
+| [`hyperlinkMouseOver`](#hyperlinkmouseover) | Triggers when hovering over a hyperlink. |
+| [`importFailed`](#importfailed) | Triggers when importing annotations fails. |
+| [`importStart`](#importstart) | Triggers when importing annotations starts. |
+| [`importSuccess`](#importsuccess) | Triggers when annotations are imported successfully. |
+| [`keyboardCustomCommands`](#keyboardcustomcommands) | Triggers when customized keyboard command keys are pressed. |
+| [`moveSignature`](#movesignature) | Triggers when a signature is moved across the page. |
+| [`pageChange`](#pagechange) | Triggers when the current page number changes. |
+| [`pageClick`](#pageclick) | Triggers when a mouse click occurs on a page. |
+| [`pageMouseover`](#pagemouseover) | Triggers when moving the mouse over a page. |
+| [`pageOrganizerSaveAs`](#pageorganizersaveas) | Triggers when a `save as` action is performed in the page organizer. |
+| [`pageRenderComplete`](#pagerendercomplete) | Triggers after a page finishes rendering. |
+| [`pageRenderInitiate`](#pagerenderinitiate) | Triggers when page rendering begins. |
+| [`printEnd`](#printend) | Triggers when a print action is completed. |
+| [`printStart`](#printstart) | Triggers when a print action is initiated. |
+| [`removeSignature`](#removesignature) | Triggers when a signature is removed. |
+| [`resizeSignature`](#resizesignature) | Triggers when a signature is resized. |
+| [`resourcesLoaded`](#resourcesloaded) | Triggers after PDFium resources are loaded. |
+| [`signaturePropertiesChange`](#signaturepropertieschange) | Triggers when signature properties are changed. |
+| [`signatureSelect`](#signatureselect) | Triggers when a signature is selected. |
+| [`signatureUnselect`](#signatureunselect) | Triggers when a signature is unselected. |
+| [`textSearchComplete`](#textsearchcomplete) | Triggers when a text search is completed. |
+| [`textSearchHighlight`](#textsearchhighlight) | Triggers when the searched text is highlighted. |
+| [`textSearchStart`](#textsearchstart) | Triggers when a text search is initiated. |
+| [`textSelectionEnd`](#textselectionend) | Triggers when text selection is complete. |
+| [`textSelectionStart`](#textselectionstart) | Triggers when text selection is initiated. |
+| [`thumbnailClick`](#thumbnailclick) | Triggers when a thumbnail is clicked. |
+| [`toolbarClick`](#toolbarclick) | Triggers when a toolbar item is clicked. |
+| [`validateFormFields`](#validateformfields) | Triggers when form field validation fails. |
+| [`zoomChange`](#zoomchange) | Triggers when the magnification value changes. |
+
+Note: For annotation and signature events, see the dedicated Annotations Events topic.
+
+## bookmarkClick
+
+The [bookmarkClick](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#bookmarkclickevent) event triggers when a bookmark item is clicked in the bookmark panel.
+
+- Event arguments: [BookmarkClickEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/bookmarkClickEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ bookmarkClick: function (args) {
+ console.log('Bookmark clicked: ' + args.name);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## toolbarClick
+
+The [toolbarClick](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#toolbarclickevent) event triggers when a toolbar item is clicked. Use it to handle actions based on the clicked item's id or name.
+
+- Event arguments: `ClickEventArgs`.
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ toolbarClick: function (args) {
+ console.log('Toolbar item clicked: ' + args.name);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## validateFormFields
+
+The [validateFormFields](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#validateformfieldsevent) event triggers when form field validation fails, typically before a download or submit action proceeds. Use this event to inspect which required fields are empty and show custom messages or block application logic if needed.
+
+- Event arguments: [ValidateFormFieldsArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/validateFormFieldsArgs/)
+ - name: Event name
+ - documentName: Current document name
+ - formField: The last interacted field’s data (if applicable)
+ - nonFillableFields: Array detailing required/invalid fields
+
+When it triggers
+- Add a form field and mark it Required (UI: right‑click field > Properties > Required).
+- Leave the field empty and click Download. The event fires and provides the list of fields that failed validation.
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/form-designer.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib'
+});
+
+viewer.enableFormFieldsValidation = true;
+viewer.validateFormFields = function (args) {
+ console.log('form field event name: ' + args.name);
+ console.log('form field document name: ' + args.documentName);
+ console.log('form field data: ' + args.formField);
+ console.log('non fillable form field details: ', + args.nonFillableFields);
+};
+
+viewer.appendTo('#pdfViewer');
+```
+
+Tip
+- To require a field programmatically, set isRequired: true when creating or editing the field via Form Designer APIs.
+
+## zoomChange
+
+The [zoomChange](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#zoomchangeevent) event triggers when the magnification value changes.
+
+- Event arguments: [ZoomChangeEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/zoomChangeEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ zoomChange: function (args) {
+ console.log('Zoom changed to: ' + args.zoomValue + '%');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## buttonFieldClick
+
+The [buttonFieldClick](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#buttonfieldclickevent) event triggers when a button form field is clicked.
+
+- Event arguments: [ButtonFieldClickEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/buttonFieldClickEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ buttonFieldClick: function (args) {
+ console.log('Button field clicked. Name: ' + args.name);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## commentAdd
+
+The [commentAdd](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#commentaddevent) event triggers when a comment is added in the comment panel.
+
+- Event arguments: [CommentEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/commentEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ commentAdd: function (args) {
+ console.log('Comment added. Id: ' + args.id);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## commentDelete
+
+The [commentDelete](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#commentdeleteevent) event triggers when a comment is deleted in the comment panel.
+
+- Event arguments: [CommentEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/commentEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ commentDelete: function (args) {
+ console.log('Comment deleted. Id: ' + args.id);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## commentEdit
+
+The [commentEdit](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#commenteditevent) event triggers when a comment is edited in the comment panel.
+
+- Event arguments: [CommentEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/commentEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ commentEdit: function (args) {
+ console.log('Comment edited. Id: ' + args.id);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## commentSelect
+
+The [commentSelect](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#commentselectevent) event triggers when a comment is selected in the comment panel.
+
+- Event arguments: [CommentEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/commentEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ commentSelect: function (args) {
+ console.log('Comment selected. Id: ' + args.id );
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## commentStatusChanged
+
+The [commentStatusChanged](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#commentstatuschangedevent) event triggers when a comment status is changed in the comment panel.
+
+- Event arguments: [CommentEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/commentEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ commentStatusChanged: function (args) {
+ console.log('Comment status changed. Id: ' + args.id + ', Status: ' + args.status );
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## created
+
+The [created](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#createdevent) event is triggered during the creation of the PDF Viewer component.
+
+- Event arguments: `void`.
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ created: function (args) {
+ console.log('PDF Viewer created');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## customContextMenuBeforeOpen
+
+The [customContextMenuBeforeOpen](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#customcontextmenubeforeopenevent) event fires just before the context menu is shown. Use it to show or hide items based on the current state (for example, only show search items when text is selected).
+
+- Event arguments: [CustomContextMenuBeforeOpenEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/customContextMenuBeforeOpenEventArgs/)
+ - name: Event name
+ - ids: Array of menu item ids that will be shown; remove ids to hide items for this open
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ customContextMenuBeforeOpen: function (args) {
+ console.log('Before open context menu at page ' + args.name);
+ }
+});
+var menuItems = [
+ {
+ text: 'SEARCH_ON_WEB',
+ id: 'web_search',
+ iconCss: 'e-icons e-search',
+ items: [
+ {
+ text: 'SEARCH_IN_GOOGLE_IMAGE',
+ id: 'web_search_images',
+ },
+ {
+ text: 'SEARCH_IN_WIKIPEDIA',
+ id: 'web_search_wikipedia',
+ },
+ {
+ text: 'SEARCH_IN_YOUTUBE',
+ id: 'web_search_youtube',
+ },
+ {
+ text: 'SEARCH_GOOGLE',
+ id: 'web_search_google',
+ },
+ ],
+ },
+ {
+ id: 'web_search_separator',
+ separator: true,
+ },
+];
+
+ viewer.appendTo("#pdfViewer");
+ viewer.documentLoad = function (args) {
+ viewer.addCustomMenu(menuItems, false, false);
+ };
+```
+
+## customContextMenuSelect
+
+The [customContextMenuSelect](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#customcontextmenuselectevent) event fires when a custom menu item is clicked. Use it to branch logic by the clicked item's id.
+
+- Event arguments: [CustomContextMenuSelectEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/customContextMenuSelectEventArgs/).
+
+- name: Event name
+- id: The id of the clicked menu item
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ customContextMenuSelect: function (args) {
+ console.log('Context menu item selected: ' + args.name);
+ }
+});
+var menuItems = [
+ {
+ text: 'SEARCH_ON_WEB',
+ id: 'web_search',
+ iconCss: 'e-icons e-search',
+ items: [
+ { text: 'SEARCH_IN_GOOGLE_IMAGE', id: 'web_search_images' },
+ { text: 'SEARCH_IN_WIKIPEDIA', id: 'web_search_wikipedia' },
+ { text: 'SEARCH_IN_YOUTUBE', id: 'web_search_youtube' },
+ { text: 'SEARCH_GOOGLE', id: 'web_search_google' }
+ ]
+ },
+ { id: 'web_search_separator', separator: true }
+];
+
+viewer.appendTo('#pdfViewer');
+viewer.documentLoad = function (args) {
+ viewer.addCustomMenu(menuItems, false, false);
+};
+
+```
+
+## documentLoad
+
+The [documentLoad](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#documentloadevent) event occurs after a document is successfully loaded and parsed.
+
+- Event arguments: [LoadEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/loadEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ textSelectionStart: function (args) {
+ console.log('Text selection started on page ' + args.pageIndex + '.');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## documentLoadFailed
+
+The [documentLoadFailed](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#documentloadfailedevent) event triggers when loading a document fails.
+
+- Event arguments: [LoadFailedEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/loadFailedEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/invalid.pdf'
+});
+viewer.appendTo('#pdfViewer');
+viewer.documentLoadFailed = function (args) {
+ console.log('Load failed. Error: ' + args.documentName);
+};
+```
+
+## documentUnload
+
+The [documentUnload](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#documentunloadevent) event triggers when closing the current document.
+
+- Event arguments: [UnloadEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/unloadEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib'
+});
+viewer.appendTo('#pdfViewer');
+viewer.documentUnload = function (args) {
+ console.log('Document unloaded');
+};
+```
+
+## downloadEnd
+
+The [downloadEnd](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#downloadendevent) event triggers after a document download completes.
+
+- Event arguments: [DownloadEndEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/downloadEndEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ downloadEnd: function (args) {
+ console.log('Download finished. File name: ' + args.fileName);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## downloadStart
+
+The [downloadStart](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#downloadstartevent) event triggers when the download operation is initiated.
+
+- Event arguments: [DownloadStartEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/downloadStartEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ downloadStart: function (args) {
+ console.log('Download started');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## exportFailed
+
+The [exportFailed](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#exportfailedevent) event triggers when exporting annotations fails.
+
+- Event arguments: [ExportFailureEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/exportFailureEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ exportFailed: function (args) {
+ console.log('Export failed: ' + args.name);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## exportStart
+
+The [exportStart](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#exportstartevent) event triggers when exporting annotations starts.
+
+- Event arguments: [ExportStartEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/exportStartEventArgs/).
+
+Example:
+
+```javascript
+// ES5 example: exportStart
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ exportStart: function (args) {
+ console.log('Export started');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## exportSuccess
+
+The [exportSuccess](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#exportsuccessevent) event triggers when annotations are exported successfully.
+
+- Event arguments: [ExportSuccessEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/exportSuccessEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ exportSuccess: function (args) {
+ console.log('Export success');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## extractTextCompleted
+
+The [extractTextCompleted](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#extracttextcompletedevent) event triggers when text extraction completes.
+
+- Event arguments: [ExtractTextCompletedEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/extractTextCompletedEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ extractTextCompleted: function (args) {
+ var text = (args.documentTextCollection || '');
+ console.log('Extracted text length: ' + text.length);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## hyperlinkClick
+
+The [hyperlinkClick](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#hyperlinkclickevent) event triggers when a hyperlink is clicked.
+
+- Event arguments: [HyperlinkClickEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/hyperlinkClickEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ hyperlinkClick: function (args) {
+ console.log('Hyperlink clicked: ' + args.hyperlink);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## hyperlinkMouseOver
+
+The [hyperlinkMouseOver](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#hyperlinkmouseoverevent) event triggers when hovering over a hyperlink.
+
+- Event arguments: HyperlinkMouseOverArgs.
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ hyperlinkMouseOver: function (args) {
+ console.log('Hyperlink hover at page: ' + args.name);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## importFailed
+
+The [importFailed](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#importfailedevent) event triggers when importing annotations fails.
+
+- Event arguments: [ImportFailureEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/importFailureEventArgs/).
+
+Example:
+
+```javascript
+// ES5 example: importFailed
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ importFailed: function (args) {
+ console.log('Import failed: ' + args.name);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## importStart
+
+The [importStart](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#importstartevent) event triggers when importing annotations starts.
+
+- Event arguments: [ImportStartEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/importStartEventArgs/).
+
+Example:
+
+```javascript
+// ES5 example: importStart
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ importStart: function (args) {
+ console.log('Import started');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## importSuccess
+
+The [importSuccess](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#importsuccessevent) event triggers when annotations are imported successfully.
+
+- Event arguments: [ImportSuccessEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/importSuccessEventArgs/).
+
+Example:
+
+```javascript
+// ES5 example: importSuccess
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ importSuccess: function (args) {
+ console.log('Import success');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## keyboardCustomCommands
+
+The [keyboardCustomCommands](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#keyboardcustomcommandsevent) event triggers when customized keyboard command keys are pressed.
+
+- Event arguments: [KeyboardCustomCommandsEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/keyboardCustomCommandsEventArgs/).
+
+ - name: Event name
+ - keyboardCommand: The command metadata raised by Command Manager
+
+When it triggers
+- After registering gestures in commandManager.keyboardCommand. For example, pressing Shift + Alt + G or Shift + Alt + H triggers the event. Use this to handle custom keyboard shortcuts.
+
+Refer to [Keyboard interaction](./accessibility#keyboard-interaction) for details about adding and handling custom shortcut keys.
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib'
+});
+viewer.commandManager = {
+ keyboardCommand: [
+ { name: 'customCopy', gesture: { pdfKeys: ej.pdfviewer.PdfKeys.G, modifierKeys: ej.pdfviewer.ModifierKeys.Shift | ej.pdfviewer.ModifierKeys.Alt } },
+ { name: 'customPaste', gesture: { pdfKeys: ej.pdfviewer.PdfKeys.H, modifierKeys: ej.pdfviewer.ModifierKeys.Shift | ej.pdfviewer.ModifierKeys.Alt } },
+ { name: 'customCut', gesture: { pdfKeys: ej.pdfviewer.PdfKeys.Z, modifierKeys: ej.pdfviewer.ModifierKeys.Control } },
+ { name: 'customSelectAll', gesture: { pdfKeys: ej.pdfviewer.PdfKeys.E, modifierKeys: ej.pdfviewer.ModifierKeys.Control } }
+ ]
+};
+viewer.appendTo('#pdfViewer');
+viewer.keyboardCustomCommands = function (args) {
+ console.log('Custom command triggered:', args);
+};
+```
+
+## moveSignature
+
+The [moveSignature](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#movesignatureevent) event triggers when a signature is moved across the page.
+
+- Event arguments: `MoveSignatureEventArgs`.
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ moveSignature: function (args) {
+ console.log('Signature moved on page ' + args.id);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## pageChange
+
+The [pageChange](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#pagechangeevent) event triggers when the current page number changes (for example, via scrolling or navigation controls).
+
+- Event arguments: [PageChangeEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/pageChangeEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ pageChange: function (args) {
+ console.log('Page changed from ' + args.previousPageNumber + ' to ' + args.currentPageNumber);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## pageClick
+
+The [pageClick](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#pageclickevent) event triggers when a mouse click occurs on a page.
+
+- Event arguments: [PageClickEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/pageClickEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ pageClick: function (args) {
+ console.log('Page ' + args.pageNumber + ' clicked at (' + args.x + ', ' + args.y + ')');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## pageMouseover
+
+The [pageMouseover](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#pagemouseoverevent) event triggers when the mouse moves over a page.
+
+- Event arguments: `PageMouseoverEventArgs`.
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ pageMouseover: function (args) {
+ console.log('Mouse over page ' + args.name);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## pageOrganizerSaveAs
+
+The [pageOrganizerSaveAs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#pageorganizersaveasevent) event triggers when a Save As action is performed in the page organizer.
+
+- Event arguments: `PageOrganizerSaveAsEventArgs`.
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ pageOrganizerSaveAs: function (args) {
+ console.log('Page organizer save triggered. File name: ' + args.downloadDocument);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## pageRenderComplete
+
+The [pageRenderComplete](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#pagerendercompleteevent) event triggers after a page finishes rendering.
+
+- Event arguments: [PageRenderCompleteEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/pageRenderCompleteEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ pageRenderComplete: function (args) {
+ console.log('Page ' + args.data + ' rendering completed.');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## pageRenderInitiate
+
+The [pageRenderInitiate](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#pagerenderinitiateevent) event triggers when page rendering begins.
+
+- Event arguments: [PageRenderInitiateEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/pageRenderInitiateEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ pageRenderInitiate: function (args) {
+ console.log('Page ' + args.jsonData + ' rendering initiated.');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## printEnd
+
+The [printEnd](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#printendevent) event triggers when a print action completes.
+
+- Event arguments: [PrintEndEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/printEndEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ printEnd: function (args) {
+ console.log('Print action completed.');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## printStart
+
+The [printStart](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#printstartevent) event triggers when a print action is initiated.
+
+- Event arguments: [PrintStartEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/printStartEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ printStart: function () {
+ console.log('Print action initiated.');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## removeSignature
+
+The [removeSignature](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#removesignatureevent) event triggers when a signature is removed.
+
+- Event arguments: [RemoveSignatureEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/removeSignatureEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ removeSignature: function (args) {
+ console.log('Signature removed from page ' + args.bounds);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## resizeSignature
+
+The [resizeSignature](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#resizesignatureevent) event triggers when a signature is resized.
+
+- Event arguments: [ResizeSignatureEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/resizeSignatureEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ resizeSignature: function (args) {
+ console.log('Signature resized on page ' + args.currentPosition );
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## resourcesLoaded
+
+The [resourcesLoaded](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#resourcesloadedevent) event triggers after the viewer's required resources are loaded.
+
+- Event arguments: `void`.
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ resourcesLoaded: function (args) {
+ console.log('PDFium resources loaded.');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## signaturePropertiesChange
+
+The [signaturePropertiesChange](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#signaturepropertieschangeevent) event triggers when signature properties change.
+
+- Event arguments: [SignaturePropertiesChangeEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/signaturePropertiesChangeEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ signaturePropertiesChange: function (args) {
+ console.log('Signature properties changed on page ' + args.type );
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## signatureSelect
+
+The [signatureSelect](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#signatureselectevent) event triggers when a signature is selected.
+
+- Event arguments: [SignatureSelectEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/signatureSelectEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ signatureSelect: function (args) {
+ console.log('Signature selected on page ' + args.signature );
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## signatureUnselect
+
+The [signatureUnselect](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#signatureunselectevent) event triggers when a signature is unselected.
+
+- Event arguments: [SignatureUnselectEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/signatureUnselectEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ signatureUnselect: function (args) {
+ console.log('Signature unselected ' + args.signature );
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## textSearchComplete
+
+The [textSearchComplete](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#textsearchcompleteevent) event triggers when a text search completes.
+
+- Event arguments: [TextSearchCompleteEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/textSearchCompleteEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ textSearchComplete: function (args) {
+ console.log('Text search completed.');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## textSearchHighlight
+
+The [textSearchHighlight](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#textsearchhighlightevent) event triggers when searched text is highlighted.
+
+- Event arguments: [TextSearchHighlightEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/textSearchHighlightEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ textSearchHighlight: function (args) {
+ console.log('Search result ' + args.bounds + ' highlighted.');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## textSearchStart
+
+The [textSearchStart](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#textsearchstartevent) event triggers when a text search is initiated.
+
+- Event arguments: [TextSearchStartEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/textSearchStartEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ textSearchStart: function (args) {
+ console.log('Text search started for: "' + args.searchText + '"');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## textSelectionEnd
+
+The [textSelectionEnd](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#textselectionendevent) event triggers when text selection is complete.
+
+- Event arguments: [TextSelectionEndEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/textSelectionEndEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ textSelectionEnd: function (args) {
+ console.log('Text selection ended on page ' + args.pageIndex );
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## textSelectionStart
+
+The [textSelectionStart](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#textselectionstartevent) event triggers when text selection is initiated.
+
+- Event arguments: `TextSelectionStartEventArgs`.
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ textSelectionStart: function (args) {
+ console.log('Text selection started on page ' + args.pageIndex);
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+## thumbnailClick
+
+The [thumbnailClick](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#thumbnailclickevent) event triggers when a thumbnail is clicked.
+
+- Event arguments: [ThumbnailClickEventArgs](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/thumbnailClickEventArgs/).
+
+Example:
+
+```javascript
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView,
+ ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer
+);
+var viewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ thumbnailClick: function (args) {
+ console.log('Thumbnail clicked for page index ' + args.pageNumber + '.');
+ }
+});
+viewer.appendTo('#pdfViewer');
+```
+
+> Tip: For annotation and signature-specific events and arguments, see the dedicated Annotations Events topic.
+
+## See also
+
+- [Annotation events](./annotations/annotation-event)
+- [Form field events](./form-designer/form-field-events)
+- [Organize PDF events](./organize-pdf/organize-pdf-events)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/feature-module.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/feature-module.md
index 50db04aea..f4d465f5f 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/feature-module.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/feature-module.md
@@ -1,32 +1,31 @@
---
layout: post
-title: Feature module in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Feature module in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Feature module in JavaScript PDF Viewer Control | Syncfusion
+description: Learn here all about Feature module in Syncfusion Essential JavaScript PDF Viewer control, its elements and more.
platform: document-processing
-control: Feature module
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Feature module in Javascript Pdfviewer control
+# Feature module in JavaScript PDF Viewer Control
The PDF Viewer features are segregated into individual feature-wise modules to enable selectively referencing in the application. The required modules should be injected to extend its functionality. The following are the selective modules of PDF Viewer that can be included as required:
-The available PdfViewer modules are:
-
-* **Toolbar**:- Built-in toolbar for better user interaction.
-* **Magnification**:- Perform zooming operation for better viewing experience.
-* **Navigation**:- Easy navigation across the PDF pages.
-* **LinkAnnotation**:- Easy navigation within and outside of the PDF document.
-* **ThumbnailView**:- Easy navigation with in the PDF document.
-* **BookmarkView**:- Easy navigation based on the bookmark content of the PDF document.
-* **TextSelection**:- Select and copy text from a PDF file.
-* **TextSearch**:- Search a text easily across the PDF document.
-* **Print**:- Print the entire document or a specific page directly from the browser.
-* **Annotation**:- Annotations can be added or edited in the PDF document.
-* **FormFields**:- Preserve the form fields in the PDF document.
-* **FormDesigner**:- Form fields can be added or edited in the PDF document.
+The available PDF Viewer modules are:
+
+* [**Toolbar**](./toolbar-customization):- Built-in toolbar for better user interaction.
+* [**Magnification**](./magnification):- Perform zooming operation for better viewing experience.
+* [**Navigation**](./interactive-pdf-navigation/page-navigation):- Easy navigation across the PDF pages.
+* [**LinkAnnotation**](./interactive-pdf-navigation/table-of-content-navigation):- Easy navigation within and outside of the PDF document.
+* [**ThumbnailView**](./interactive-pdf-navigation/page-thumbnail-navigation):- Easy navigation with in the PDF document.
+* [**BookmarkView**](./interactive-pdf-navigation/bookmark-navigation):- Easy navigation based on the bookmark content of the PDF document.
+* [**TextSelection**](./textselection):- Select and copy text from a PDF file.
+* [**TextSearch**](./text-search):- Search a text easily across the PDF document.
+* [**Print**](./print):- Print the entire document or a specific page directly from the browser.
+* [**Annotation**](./annotations/text-markup-annotation):- Annotations can be added or edited in the PDF document.
+* [**FormFields**](./form-designer/create-programmatically):- Preserve the form fields in the PDF document.
+* [**FormDesigner**](./form-designer/create-programmatically):- Form fields can be added or edited in the PDF document.
>In addition to injecting the required modules in your application, enable corresponding properties to extend the functionality for a PDF Viewer instance.
Refer to the following table.
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-designer/create-programmatically.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-designer/create-programmatically.md
index d0a9fc88d..3a73f2b88 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-designer/create-programmatically.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-designer/create-programmatically.md
@@ -1,30 +1,29 @@
---
layout: post
-title: Create programmatically in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Create programmatically in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Create form fields in the JavaScript PDF Viewer component | Syncfusion
+description: Learn how to add, update, delete, save, print, validate, and import/export form fields in the Syncfusion JavaScript PDF Viewer component.
platform: document-processing
-control: Create programmatically
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Create programmatically in Javascript Pdfviewer control
+# Create programmatically in JavaScript PDF Viewer control
-The PDF Viewer control provides the option to add, edit and delete the Form Fields. The Form Fields type supported by the PDF Viewer Control are:
+The PDF Viewer component provides options to add, edit, and delete form fields. The supported form field types are:
- * Textbox
- * Password
- * CheckBox
- * RadioButton
- * ListBox
- * DropDown
- * SignatureField
- * InitialField
+- Textbox
+- Password
+- CheckBox
+- RadioButton
+- ListBox
+- DropDown
+- Signature field
+- Initial field
## Add a form field to PDF document programmatically
-Using addFormField method, the form fields can be added to the PDF document programmatically. We need to pass two parameters in this method. They are Form Field Type and Properties of Form Field Type. To add form field programmatically, Use the following code.
+Use the addFormField method to add form fields programmatically. Pass the form field type and the corresponding property object as parameters. The following example demonstrates adding multiple fields on document load.
{% tabs %}
{% highlight js tabtitle="index.js" %}
@@ -35,15 +34,14 @@ Using addFormField method, the form fields can be added to the PDF document prog
{% endhighlight %}
{% endtabs %}
-N> To set up the **server-backed PDF Viewer**,
-Add the below `serviceUrl` in the `index.html` file
+N> To configure the server-backed PDF Viewer, add the following `serviceUrl` in the `index.html` file:
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/addformfield-cs1/index.html" %}
## Edit/Update form field programmatically
-Using updateFormField method, Form Field can be updated programmatically. We should get the Form Field object/Id from FormFieldCollections property that you would like to edit and pass it as a parameter to updateFormField method. The second parameter should be the properties that you would like to update for Form Field programmatically. We have updated the value and background Color properties of Textbox Form Field.
+Use the updateFormField method to modify a form field programmatically. Retrieve the target field from the formFieldCollections property (by object or ID) and pass it as the first parameter. Provide the properties to update as the second parameter. The following example updates the background color of a Textbox field.
{% tabs %}
{% highlight js tabtitle="index.js" %}
@@ -54,15 +52,14 @@ Using updateFormField method, Form Field can be updated programmatically. We sho
{% endhighlight %}
{% endtabs %}
-N> To set up the **server-backed PDF Viewer**,
-Add the below `serviceUrl` in the `index.html` file
+N> To configure the server-backed PDF Viewer, add the following `serviceUrl` in the `index.html` file:
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/updateformfield-cs1/index.html" %}
## Delete form field programmatically
-Using deleteFormField method, the form field can be deleted programmatically. We should retrieve the Form Field object/Id from FormFieldCollections property that you would like to delete and pass it as a parameter to deleteFormField method. To delete a Form Field programmatically, use the following code.
+Use the deleteFormField method to remove a form field programmatically. Retrieve the target field from the formFieldCollections property (by object or ID) and pass it to deleteFormField. The following example deletes the first form field.
{% tabs %}
{% highlight js tabtitle="index.js" %}
@@ -73,19 +70,18 @@ Using deleteFormField method, the form field can be deleted programmatically. We
{% endhighlight %}
{% endtabs %}
-N> To set up the **server-backed PDF Viewer**,
-Add the below `serviceUrl` in the `index.html` file
+N> To configure the server-backed PDF Viewer, add the following `serviceUrl` in the `index.html` file:
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/deleteformfield-cs1/index.html" %}
## Saving the form fields
-When the download icon is selected on the toolbar, the Form Fields will be saved in the PDF document and this action will not affect the original document. Refer the below GIF for further reference.
+Selecting the Download icon on the toolbar saves the form fields in the exported PDF without modifying the original document. See the following GIF for reference.
-
+
-You can invoke download action using following code snippet.
+You can invoke the download action using the following code snippet.
```
@@ -127,11 +123,11 @@ document.getElementById('download').addEventListener('click', function () {
## Printing the form fields
-When the print icon is selected on the toolbar, the PDF document will be printed along with the Form Fields added to the pages and this action will not affect the original document. Refer the below GIF for further reference.
+Selecting the Print icon on the toolbar prints the PDF with the added form fields. This action does not modify the original document. See the following GIF for reference.
-
+
-You can invoke print action using the following code snippet.,
+You can invoke the print action using the following code snippet:
```
@@ -173,7 +169,7 @@ document.getElementById('print').addEventListener('click', function () {
## setFormFieldMode programmatically
-The **setFormFieldMode** method is a function in the Syncfusion PDF Viewer library that allows you to add a form field dynamically by passing the type of the form field. You can pass the form fields as a parameter like below.
+The setFormFieldMode method enables adding a form field dynamically by specifying the field type. For example, the following adds a Password field when a button is clicked.
```
@@ -211,16 +207,15 @@ document.getElementById('addPasswordField').addEventListener('click', function (
## Open the existing PDF document
-We can open the already saved PDF document contains Form Fields in it by clicking the open icon in the toolbar. Refer the below GIF for further reference.
+Open a PDF that already contains form fields by clicking the Open icon on the toolbar. See the following GIF for reference.
-
+
## Validate form fields
-The form fields in the PDF Document will be validated when the `enableFormFieldsValidation` is set to true and hook the validateFormFields. The validateFormFields will be triggered when the PDF document is downloaded or printed with the non-filled form fields. The non-filled fields will be obtained in the `nonFillableFields` property of the event arguments of validateFormFields.
-
-Add the following code snippet to validate the form fields,
+Form fields are validated when `enableFormFieldsValidation` is set to true and the validateFormFields event is handled. The event triggers during download or print if required fields are not filled. The non-filled fields are available in the `nonFillableFields` property of the event arguments.
+Add the following code to validate form fields:
{% tabs %}
{% highlight js tabtitle="Standalone" %}
@@ -255,11 +250,11 @@ viewer.validateFormFields = function (args) {
## Export and import form fields
-The PDF Viewer control provides the support to export and import the form field data in the following formats using the `importFormFields`, `exportFormFields`, and `exportFormFieldsAsObject` methods.
+The PDF Viewer component supports exporting and importing form field data using the `importFormFields`, `exportFormFields`, and `exportFormFieldsAsObject` methods in the following formats:
-* FDF
-* XFDF
-* JSON
+- FDF
+- XFDF
+- JSON
### Export and import as FDF
@@ -268,7 +263,7 @@ Using the `exportFormFields` method, the form field data can be exported in the
* The first one must be the destination path for the exported data. If the path is not specified, it will ask for the location while exporting.
* The second parameter should be the format type of the form data.
-The following code explains how to export the form field data as FDF.
+The following example exports and imports form field data as FDF.
```javascript
@@ -293,7 +288,7 @@ document.getElementById('importFdf').addEventListener('click', ()=> {
### Export and import as XFDF
-The following code explains how to export the form field data as XFDF.
+The following example exports and imports form field data as XFDF.
```javascript
@@ -316,7 +311,7 @@ document.getElementById('importXfdf').addEventListener('click', ()=> {
### Export and import as JSON
-The following code explains how to export the form field data as JSON.
+The following example exports and imports form field data as JSON.
```javascript
@@ -340,7 +335,7 @@ document.getElementById('importJson').addEventListener('click', ()=> {
### Export and import as Object
-The PDF Viewer control supports exporting the form field data as an object, and the exported data will be imported into the current PDF document from the object.
+The PDF Viewer component supports exporting the form field data as an object and importing that data back into the current PDF document.
The following code shows how to export the form field data as an object and import the form field data from that object into the current PDF document via a button click.
@@ -385,20 +380,20 @@ document.getElementById('importData').addEventListener('click', ()=> {
```
## Form field properties
-Form field properties in Syncfusion PDF Viewer allow you to customize and interact with form fields embedded within PDF documents. This documentation provides an overview of the form field properties supported by the Syncfusion PDF Viewer and explains how to use them effectively.
+Form field properties allow customization and interaction with fields embedded in PDF documents. The following sections outline the supported field types and their configurable settings.
- * Textbox
- * Password
- * CheckBox
- * RadioButton
- * ListBox
- * DropDown
- * SignatureField
- * InitialField
+- Textbox
+- Password
+- CheckBox
+- RadioButton
+- ListBox
+- DropDown
+- Signature field
+- Initial field
### Signature and initial fields settings
-Using the `updateFormField` method, the form fields can be updated programmatically.
+Use the `updateFormField` method to modify form fields programmatically.
The following code example explains how to update the signature field properties on a button click.
@@ -424,7 +419,7 @@ document.getElementById('updateProperties').addEventListener('click',function()
```
-The following code example explains how to update the properties of the signature field added to the document from the form designer toolbar.
+The following code shows how to configure default properties for a signature field added from the Form Designer toolbar.
{% tabs %}
{% highlight js tabtitle="Standalone" %}
@@ -607,7 +602,7 @@ pdfviewer.initialFieldSettings = {
Using the `updateFormField` method, the form fields can be updated programmatically.
-The following code example explains how to update the Textbox field properties on a button click.
+The following example updates Textbox field properties on a button click.
```html
@@ -643,7 +638,7 @@ document.getElementById('updateProperties').addEventListener('click',function()
```
-The following code example explains how to update the properties of the Textbox field added to the document from the form designer toolbar.
+The following code shows how to configure default properties for a Textbox field added from the Form Designer toolbar.
{% tabs %}
@@ -749,7 +744,7 @@ pdfviewer.textFieldSettings = {
Using the `updateFormField` method, the form fields can be updated programmatically.
-The following code example explains how to update the Password field properties on a button click.
+The following example updates Password field properties on a button click.
```html
@@ -784,7 +779,7 @@ document.getElementById('updateProperties').addEventListener('click',function()
```
-The following code example explains how to update the properties of the Password field added to the document from the form designer toolbar.
+The following code shows how to configure default properties for a Password field added from the Form Designer toolbar.
{% tabs %}
{% highlight js tabtitle="Standalone" %}
@@ -887,7 +882,7 @@ pdfviewer.passwordFieldSettings = {
Using the `updateFormField` method, the form fields can be updated programmatically.
-The following code example explains how to update the CheckBox field properties on a button click.
+The following example updates CheckBox field properties on a button click.
```html
@@ -916,7 +911,7 @@ document.getElementById('updateProperties').addEventListener('click',function()
```
-The following code example explains how to update the properties of the CheckBox field added to the document from the form designer toolbar.
+The following code shows how to configure default properties for a CheckBox field added from the Form Designer toolbar.
{% tabs %}
{% highlight js tabtitle="Standalone" %}
@@ -990,13 +985,13 @@ pdfviewer.checkBoxFieldSettings = {
{% endhighlight %}
{% endtabs %}
-
+
### RadioButton field settings
Using the `updateFormField` method, the form fields can be updated programmatically.
-The following code example explains how to update the RadioButton field properties on a button click.
+The following example updates RadioButton field properties on a button click.
```html
@@ -1025,7 +1020,7 @@ document.getElementById('updateProperties').addEventListener('click',function()
```
-The following code example explains how to update the properties of the RadioButton field added to the document from the form designer toolbar.
+The following code shows how to configure default properties for a RadioButton field added from the Form Designer toolbar.
{% tabs %}
{% highlight js tabtitle="Standalone" %}
@@ -1101,13 +1096,13 @@ pdfviewer.radioButtonFieldSettings = {
{% endhighlight %}
{% endtabs %}
-
+
### ListBox field settings
Using the `updateFormField` method, the form fields can be updated programmatically.
-The following code example explains how to update the ListBox field properties on a button click.
+The following example updates ListBox field properties on a button click.
```html
@@ -1140,7 +1135,7 @@ document.getElementById('updateProperties').addEventListener('click',function()
```
-The following code example explains how to update the properties of the Listbox field added to the document from the form designer toolbar.
+The following code shows how to configure default properties for a ListBox field added from the Form Designer toolbar.
{% tabs %}
{% highlight js tabtitle="Standalone" %}
@@ -1239,13 +1234,13 @@ pdfviewer.listBoxFieldSettings = {
{% endhighlight %}
{% endtabs %}
-
+
### DropDown field settings
Using the [updateFormField](https://ej2.syncfusion.com/documentation/api/pdfviewer/#updateformfields) method, the form fields can be updated programmatically.
-The following code example explains how to update the DropDown field properties on a button click.
+The following example updates DropDown field properties on a button click.
```html
@@ -1279,7 +1274,7 @@ document.getElementById('updateProperties').addEventListener('click',function()
```
-The following code example explains how to update the properties of the Dropdown field added to the document from the form designer toolbar.
+The following code shows how to configure default properties for a DropDown field added from the Form Designer toolbar.
{% tabs %}
@@ -1378,4 +1373,4 @@ pdfviewer.DropdownFieldSettings = {
{% endhighlight %}
{% endtabs %}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-designer/create-with-user-interface-interaction.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-designer/create-with-user-interface-interaction.md
index 8162303cb..85189f12f 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-designer/create-with-user-interface-interaction.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-designer/create-with-user-interface-interaction.md
@@ -1,30 +1,29 @@
---
layout: post
-title: User interaction in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Create with user interface interaction in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Design form fields in the JavaScript PDF Viewer component | Syncfusion
+description: Learn how to add, drag, resize, edit, and manage form fields using the UI in the Syncfusion JavaScript PDF Viewer component.
platform: document-processing
-control: Create with user interface interaction
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Create with user interface interaction
+# Create with user interface interaction for JavaScript
-The PDF viewer control provides the option for interaction with Form Fields such as Drag and resize. you can draw a Form Field dynamically by clicking the Form Field icon on the toolbar and draw it in the PDF document. The Form Fields type supported by the PDF Viewer Control are:
+The PDF Viewer component supports interactive form field design, including drawing, dragging, and resizing fields directly on the page. Click the Form Field icon on the toolbar to add a field and place it on the document. Supported form field types include:
- * Textbox
- * Password
- * CheckBox
- * RadioButton
- * ListBox
- * DropDown
- * SignatureField
- * InitialField
+- Textbox
+- Password
+- CheckBox
+- RadioButton
+- ListBox
+- DropDown
+- Signature field
+- Initial field
## Enable or Disable form designer toolbar
-We should inject FormDesigner module and set enableFormDesignerToolbar as true to enable the Form designer icon on the toolbar. By default, enableFormDesignerToolbar is set as true. Use the following code to inject FormDesigner module and to enable the enableFormDesignerToolbar property.
+Inject the FormDesigner module and set enableFormDesignerToolbar to true to display the Form Designer icon on the toolbar. The default value is true. Use the following code to enable the toolbar option.
@@ -55,41 +54,41 @@ pdfviewer.appendTo('#PdfViewer');
## Add the form field dynamically
-Click the Form Field icon on the toolbar and then click on to the PDF document to draw a Form Field. Refer the below GIF for further reference.
+Click the Form Field icon on the toolbar, then click on the PDF to draw a form field. See the following GIF for reference.
-
+
## Drag the form field
-We provide options to drag the Form Field which is currently selected in the PDF document. Refer the below GIF for further reference.
+Drag the selected form field to reposition it within the PDF document. See the following GIF for reference.
-
+
## Resize the form field
-We provide options to resize the Form Field which is currently selected in the PDF document. Refer the below GIF for further reference.
+Resize the selected form field using the resize handles on the field boundary. See the following GIF for reference.
-
+
## Edit or Update the form field dynamically
-The properties of the Form Fields can be edited using the Form Field Properties window. It can be opened by selecting the Properties option in the context menu that appears on the right by clicking the Form Field object. Refer the below image for the properties available to customize the appearance of the Form Field.
+Edit form field properties using the Form Field Properties dialog. Open it by right-clicking a form field and selecting Properties from the context menu. The following images show examples of available settings.
-
+
-
+
-
+
## Clipboard operation with form field
-The PDF Viewer control supports the clipboard operations such as cut, copy and paste for Form Fields. You can right click on the Form Field object to view the context menu and select to the clipboard options that you would like to perform. Refer the below image for the options in the context menu.
+The PDF Viewer supports clipboard operations such as cut, copy, and paste for form fields. Right-click a form field to open the context menu and choose the desired clipboard action. The following image shows the available options.
-
+
## Undo and Redo
-We provided support to undo/redo the Form Field actions that are performed at runtime. Use the following code example to perform undo/redo actions.
+Undo and redo actions are supported for runtime changes made to form fields. Use the following code to perform undo and redo operations.
```
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-designer/form-field-events.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-designer/form-field-events.md
index 64f800d72..96246440b 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-designer/form-field-events.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-designer/form-field-events.md
@@ -1,15 +1,14 @@
---
layout: post
-title: Form Field Events in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about different form field in Syncfusion Javascript Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Form Field Events in JavaScript PDF Viewer control | Syncfusion
+description: Learn here all about different form field in Syncfusion JavaScript PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
-control: Form Field Events
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# PDF Viewer Form Field events
+# PDF Viewer Form Field events in JavaScript
The PDF Viewer control provides the support to different Form Field events. The Form Field events supported by the PDF Viewer Control are:
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-filling.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-filling.md
new file mode 100644
index 000000000..dbf113167
--- /dev/null
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/form-filling.md
@@ -0,0 +1,86 @@
+---
+layout: post
+title: Form filling in JavaScript PDF Viewer | Syncfusion
+description: View, fill, export, and import PDF form fields in Syncfusion JavaScript PDF Viewer, with signature support and interaction control.
+platform: document-processing
+control: PDF Viewer
+documentation: ug
+domainurl: ##DomainURL##
+---
+
+# Form filling in JavaScript PDF Viewer
+
+The PDF Viewer displays existing form fields in a PDF and enables users to fill, validate, and download the filled data.
+
+The PDF Viewer supports the following form field types:
+
+* Text box
+* Password
+* Check box
+* Radio button
+* List box
+* Dropdown
+* Signature field
+* Initial field
+
+
+
+## Disabling form fields
+
+The PDF Viewer provides an option to disable interaction with form fields. Use the following configuration to disable form fields in the viewer.
+
+{% tabs %}
+{% highlight js tabtitle="index.js" %}
+
+ej.pdfviewer.PdfViewer.Inject(
+ ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Navigation, ej.pdfviewer.Annotation,
+ ej.pdfviewer.LinkAnnotation, ej.pdfviewer.ThumbnailView, ej.pdfviewer.BookmarkView, ej.pdfviewer.TextSelection,
+ ej.pdfviewer.TextSearch, ej.pdfviewer.FormFields, ej.pdfviewer.FormDesigner
+);
+
+var pdfviewer = new ej.pdfviewer.PdfViewer({
+ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
+ enableFormDesigner: false
+});
+pdfviewer.appendTo('#PdfViewer');
+
+{% endhighlight %}
+{% endtabs %}
+
+## Add a handwritten signature to a signature field
+
+Add a handwritten signature to a signature field by following these steps:
+
+* Click the signature field in the PDF document to open the signature panel.
+
+
+
+* Draw the signature in the signature panel.
+
+
+
+* Select **CREATE**. The drawn signature is added to the signature field.
+
+
+
+## Delete a signature from a signature field
+
+Delete a signature placed in a signature field by using the Delete option in the annotation toolbar.
+
+
+
+## Export and import form fields
+
+The PDF Viewer supports exporting and importing form field data using the `importFormFields`, `exportFormFields`, and `exportFormFieldsAsObject` methods. The following formats are supported:
+
+* FDF
+* XFDF
+* JSON
+
+For more information, see the [Form fields documentation](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/form-designer/create-programmatically#export-and-import-form-fields).
+
+## See also
+
+* [Handwritten signature in JavaScript PDF Viewer](./annotations/signature-annotation)
+* [Form Designer events](./form-designer/form-field-events)
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/formdesigner/programmatically-work-with-form-field.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/formdesigner/programmatically-work-with-form-field.md
deleted file mode 100644
index c3a4c8cda..000000000
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/formdesigner/programmatically-work-with-form-field.md
+++ /dev/null
@@ -1,115 +0,0 @@
----
-layout: post
-title: Programmatically work with form field in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Programmatically work with form field in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
-platform: document-processing
-control: Programmatically work with form field
-publishingplatform: Javascript
-documentation: ug
-domainurl: ##DomainURL##
----
-
-# Programmatically work with form field in Javascript Pdfviewer control
-
-The PDF Viewer control provides the option to add, edit and delete the Form Fields. The Form Fields type supported by the PDF Viewer Control are:
-
- * Textbox
- * Password
- * CheckBox
- * RadioButton
- * ListBox
- * DropDown
- * SignatureField
- * InitialField
-
-## Add a form field to PDF document programmatically
-
-Using addFormField method, the form fields can be added to the PDF document programmatically. We need to pass two parameters in this method. They are Form Field Type and Properties of Form Field Type. To add form field programmatically, Use the following code.
-
-{% tabs %}
-{% highlight js tabtitle="index.js" %}
-{% include code-snippet/pdfviewer/javascript-es5/addformfield-cs2/index.js %}
-{% endhighlight %}
-{% highlight html tabtitle="index.html" %}
-{% include code-snippet/pdfviewer/javascript-es5/addformfield-cs2/index.html %}
-{% endhighlight %}
-{% endtabs %}
-
-{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/addformfield-cs2/index.html" %}
-
-## Edit/Update form field programmatically
-
-Using updateFormField method, Form Field can be updated programmatically. We should get the Form Field object/Id from FormFieldCollections property that you would like to edit and pass it as a parameter to updateFormField method. The second parameter should be the properties that you would like to update for Form Field programmatically. We have updated the value and background Color properties of Textbox Form Field.
-
-{% tabs %}
-{% highlight js tabtitle="index.js" %}
-{% include code-snippet/pdfviewer/javascript-es5/updateformfield-cs2/index.js %}
-{% endhighlight %}
-{% highlight html tabtitle="index.html" %}
-{% include code-snippet/pdfviewer/javascript-es5/updateformfield-cs2/index.html %}
-{% endhighlight %}
-{% endtabs %}
-
-{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/updateformfield-cs2/index.html" %}
-
-## Delete form field programmatically
-
-Using deleteFormField method, the form field can be deleted programmatically. We should retrieve the Form Field object/Id from FormFieldCollections property that you would like to delete and pass it as a parameter to deleteFormField method. To delete a Form Field programmatically, use the following code.
-
-{% tabs %}
-{% highlight js tabtitle="index.js" %}
-{% include code-snippet/pdfviewer/javascript-es5/deleteformfield-cs2/index.js %}
-{% endhighlight %}
-{% highlight html tabtitle="index.html" %}
-{% include code-snippet/pdfviewer/javascript-es5/deleteformfield-cs2/index.html %}
-{% endhighlight %}
-{% endtabs %}
-
-{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/deleteformfield-cs2/index.html" %}
-
-## Saving the form fields
-
-When the download icon is selected on the toolbar, the Form Fields will be saved in the PDF document and this action will not affect the original document. Refer the below GIF for further reference.
-
-
-
-You can invoke download action using following code snippet.
-
-```javascript
-var pdfviewer = new ej.pdfviewer.PdfViewer({
- enableDownload: true,
- documentPath: "PDF_Succinctly.pdf",
- serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'
- });
-ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.Annotation, ej.pdfviewer.TextSearch, ej.pdfviewer.Navigation,ej.pdfviewer.Print);
-pdfviewer.appendTo('#PdfViewer');
-pdfviewer.download();
-
-```
-
-## Printing the form fields
-
-When the print icon is selected on the toolbar, the PDF document will be printed along with the Form Fields added to the pages and this action will not affect the original document. Refer the below GIF for further reference.
-
-
-
-You can invoke print action using the following code snippet.,
-
-```javascript
-
-var pdfviewer = new ej.pdfviewer.PdfViewer({
- enablePrint: true,
- documentPath: "PDF_Succinctly.pdf",
- serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'
- });
-ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Navigation,ej.pdfviewer.Print);
-pdfviewer.appendTo('#PdfViewer');
-pdfviewer.print.print();
-
-```
-
-## Open the existing PDF document
-
-We can open the already saved PDF document contains Form Fields in it by clicking the open icon in the toolbar. Refer the below GIF for further reference.
-
-
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/formdesigner/user-interaction-with-form-fields.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/formdesigner/user-interaction-with-form-fields.md
deleted file mode 100644
index 6af6e526a..000000000
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/formdesigner/user-interaction-with-form-fields.md
+++ /dev/null
@@ -1,86 +0,0 @@
----
-layout: post
-title: User interaction with form fields in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about User interaction with form fields in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
-platform: document-processing
-control: User interaction with form fields
-publishingplatform: Javascript
-documentation: ug
-domainurl: ##DomainURL##
----
-
-# User interaction with form fields in Javascript Pdfviewer control
-
-The PDF viewer control provides the option for interaction with Form Fields such as Drag and resize. you can draw a Form Field dynamically by clicking the Form Field icon on the toolbar and draw it in the PDF document. The Form Fields type supported by the PDF Viewer Control are:
-
- * Textbox
- * Password
- * CheckBox
- * RadioButton
- * ListBox
- * DropDown
- * SignatureField
- * InitialField
-
-## Enable or Disable form designer toolbar
-
-We should inject FormDesigner module and set enableFormDesignerToolbar as true to enable the Form designer icon on the toolbar. By default, enableFormDesignerToolbar is set as true. Use the following code to inject FormDesigner module and to enable the enableFormDesignerToolbar property.
-
-```javascript
-var pdfviewer = new ej.pdfviewer.PdfViewer({
- documentPath: "FormDesigner.pdf",
- serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer',
- enableFormDesignerToolbar: true
-});
-ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.FormDesigner);
-pdfviewer.appendTo('#PdfViewer');
-```
-
-## Add the form field dynamically
-
-Click the Form Field icon on the toolbar and then click on to the PDF document to draw a Form Field. Refer the below GIF for further reference.
-
-
-
-## Drag the form field
-
-We provide options to drag the Form Field which is currently selected in the PDF document. Refer the below GIF for further reference.
-
-
-
-## Resize the form field
-
-We provide options to resize the Form Field which is currently selected in the PDF document. Refer the below GIF for further reference.
-
-
-
-## Edit or Update the form field dynamically
-
-The properties of the Form Fields can be edited using the Form Field Properties window. It can be opened by selecting the Properties option in the context menu that appears on the right by clicking the Form Field object. Refer the below image for the properties available to customize the appearance of the Form Field.
-
-
-
-
-
-
-
-## Clipboard operation with form field
-
-The PDF Viewer control supports the clipboard operations such as cut, copy and paste for Form Fields. You can right click on the Form Field object to view the context menu and select to the clipboard options that you would like to perform. Refer the below image for the options in the context menu.
-
-
-
-## Undo and Redo
-
-We provided support to undo/redo the Form Field actions that are performed at runtime. Use the following code example to perform undo/redo actions.
-
-```javascript
-var pdfviewer = new ej.pdfviewer.PdfViewer({
- documentPath: "FormDesigner.pdf",
- serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer',
-});
-ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.FormDesigner);
-pdfviewer.appendTo('#PdfViewer');
-pdfviewer.undo();
-pdfviewer.redo();
-```
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/getting-started-with-server-backed.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/getting-started-with-server-backed.md
index 4849dfaf0..8e98b9384 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/getting-started-with-server-backed.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/getting-started-with-server-backed.md
@@ -1,23 +1,23 @@
---
layout: post
-title: Getting started with Javascript PDF Viewer control | Syncfusion
-description: Checkout and learn about Getting started with Javascript PDF Viewer control of Syncfusion Essential JS 2 and more details.
+title: Server-backed JavaScript PDF Viewer | Syncfusion
+description: Learn how to set up and use the Syncfusion JavaScript PDF Viewer in server-backed mode using CDN resources, injecting modules and web service configuration.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Getting started in Javascript PDF Viewer control
+# Getting started with JavaScript PDF Viewer (server-backed)
-The Essential JS 2 for JavaScript (global script) is an ES5 formatted pure JavaScript framework which can be directly used in latest web browsers.
+This guide explains how to create the PDF Viewer component and configure its features in JavaScript (global script) using CDN-hosted resources in server-backed mode.
-## Component Initialization with CDN link for script and style reference
+> Ensure that the same version is used for all script and style references to avoid compatibility issues.
-**Step 1:** Create an app folder `my_app` for the Essential JS 2 JavaScript components.
+## Set up the application
-**Step 2:** The Essential JS 2 component's global scripts and styles are already hosted in the below CDN link formats.
+1. Create an app folder `my_app` for the Essential JS 2 JavaScript components.
+2. The Essential JS 2 component's global scripts and styles are already hosted in the following CDN link formats.
**Syntax:**
> Script: `https://cdn.syncfusion.com/ej2/{Version}/dist/{PACKAGE_NAME}.min.js`
@@ -29,7 +29,7 @@ The Essential JS 2 for JavaScript (global script) is an ES5 formatted pure JavaS
>
> Styles: [`https://cdn.syncfusion.com/ej2/26.2.11/ej2-base/styles/material.css`](https://cdn.syncfusion.com/ej2/26.2.11/ej2-base/styles/material.css)
-**Step 3:** Create a HTML page (index.html) in `my_app` location and add the CDN link references. Now, add the `Div` element and initiate the `Essential JS 2 PDF Viewer` component in the index.html by using following code.
+3. Create an HTML page (`index.html`) in the `my_app` location, add the CDN link references, add the `div` element, and initialize the Essential JS 2 PDF Viewer component by using the following code.
{% tabs %}
{% highlight html tabtitle="index.html" %}
@@ -49,34 +49,51 @@ N> The Web API hosted link https://document.syncfusion.com/web-services/pdf-view
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/es5-getting-started-cs1/index.html" %}
-**Step 4:** Now, run the `index.html` in web browser, it will render the `Essential JS 2 PDF Viewer` component.
+## Run the application
-> For PDF Viewer serviceUrl creation, follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/how-to/create-pdfviewer-service)
+Open the `index.html` file in a web browser to render the Essential JS 2 PDF Viewer component.
-## How to run the PDF Viewer web service
+> For PDF Viewer serviceUrl creation, follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/how-to/create-pdfviewer-service).
-1. Download the sample from the [Web service sample in GitHub](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices) link.
+## Module injection
-2. Navigate to the `ASP.NET Core` folder and open it in the command prompt.
+To enable additional features, inject the required modules. The following modules extend the PDF Viewer's functionality:
+
+* `LinkAnnotation`: Enables hyperlink navigation.
+* `BookmarkView`: Displays and navigates document bookmarks.
+* `Magnification`: Provides zoom in/out operations.
+* `Navigation`: Enables page navigation.
+* `TextSelection`: Enables text selection.
+* `ThumbnailView`: Displays page thumbnails for navigation.
+* `Toolbar`: Enables the built-in toolbar UI.
+* `Print`: Enables printing.
+* `Annotation`: Enables annotation features.
+* `TextSearch`: Enables text search.
+* `FormFields`: Enables form field support.
+* `FormDesigner`: Enables designing and editing of form fields.
+
+## Run the PDF Viewer web service
+1. Download the sample from the [Web service sample in GitHub](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices).
+2. Navigate to the `ASP.NET Core` folder and open it in the command prompt.
3. Navigate to the appropriate subfolder based on your .NET version:
- .NET 6.0 → `PdfViewerWebService_6.0`
- .NET 8.0 → `PdfViewerWebService_8.0`
-4. Use the below command to restore the required packages.
+4. Use the following command to restore the required packages.
```
dotnet restore
```
-5. Use the below command to run the web service.
+5. Use the following command to run the web service.
```
dotnet run
```
-6. You can see that the PDF Viewer server instance runs in the local host with the port number `localhost:5001` and navigate to the PDF Viewer Web control `localhost:5001/pdfviewer` which returns the default get response method. We can bind the link to the `serviceUrl` property of PDF Viewer as below.
+6. The PDF Viewer server instance runs at `https://localhost:5001`. Navigate to `https://localhost:5001/pdfviewer`, which returns the default GET response method. Bind this link to the `serviceUrl` property of the PDF Viewer as shown below.
```javascript
var pdfviewer = new ej.pdfviewer.PdfViewer({
@@ -87,6 +104,8 @@ var pdfviewer = new ej.pdfviewer.PdfViewer({
N> When configuring the server-backed PDF viewer, it's essential to understand that there is no need to include the pdfium.js and pdfium.wasm files. Unlike the standalone PDF viewer, which relies on these files for local rendering, the server-backed PDF viewer fetches and renders PDFs directly from the server. Consequently, you can exclude the copy command for deployment process, as they are not required to load and display PDFs in this context.
+> Refer to the [JavaScript PDF Viewer feature tour](https://www.syncfusion.com/pdf-viewer-sdk) for an overview of capabilities. Explore the [JavaScript PDF Viewer example](https://document.syncfusion.com/demos/pdf-viewer/javascript-es5/#/tailwind3/pdfviewer/default.html) to see core features in action.
+
N> For hosting the web service on the Linux platform, ensure to include the [SkiaSharp.NativeAssets.Linux](https://nuget.org/packages/SkiaSharp.NativeAssets.Linux/3.116.1). Additionally, for AWS environments, utilize the following packages:
| **Amazon Web Services (AWS)** |**NuGet package name** |
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/getting-started.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/getting-started.md
index e41cacc28..6a005580d 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/getting-started.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/getting-started.md
@@ -1,15 +1,14 @@
---
layout: post
-title: Getting started with Javascript PDF Viewer control | Syncfusion
-description: Checkout and learn about Getting started with Javascript PDF Viewer control of Syncfusion Essential JS 2 and more details.
+title: Getting started with JavaScript PDF Viewer control | Syncfusion
+description: Checkout and learn about Getting started with JavaScript PDF Viewer control of Syncfusion Essential JS 2 and more details.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Getting started in Standalone PDF Viewer control
+# Getting started in JavaScript Standalone PDF Viewer control
The Essential JS 2 for JavaScript (global script) is an ES5 formatted pure JavaScript framework which can be directly used in latest web browsers.
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/globalization.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/globalization.md
index c99ed3e1c..b0caafde0 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/globalization.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/globalization.md
@@ -1,15 +1,14 @@
---
layout: post
-title: Globalization in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Globalization in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Globalization in JavaScript PDF Viewer control | Syncfusion
+description: Learn here all about Globalization in Syncfusion JavaScript PDF Viewer control of Syncfusion Essential JS 2 and more.
platform: document-processing
-control: Globalization
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Globalization in Javascript Pdfviewer control
+# Globalization in JavaScript PDF Viewer control
The text contents provided in the PDF Viewer can be localized using the collection of localized strings for different cultures. By default, the PDF Viewer is localized in “__en-US__”.
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to-overview.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to-overview.md
new file mode 100644
index 000000000..08b7d57ce
--- /dev/null
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to-overview.md
@@ -0,0 +1,69 @@
+---
+layout: post
+title: FAQ Section in PDF Viewer control | Syncfusion
+description: In this section, you can know about the various questions asked about manipulation of in PDF Viewer control.
+platform: document-processing
+control: PDF Viewer
+documentation: ug
+domainurl: ##DomainURL##
+---
+
+# Frequently Asked Questions Section in JavaScript PDF Viewer control
+
+The frequently asked questions in Essential® PDF Viewer are listed below.
+
+* [How to add annotation in text search in typescript?](./how-to/add-annotation-in-text-search-js)
+* [How to add custom header to the PDF Viewer ajax request?](./how-to/add-header-value)
+* [How to add a save button to PDF Viewer toolbar?](./how-to/add-save-button-js)
+* [How to customize the annotation selectors?](./how-to/annotation-selectors)
+* [How to change the author name of the annotation dynamically?](./how-to/change-author-name-using-annotation-settings)
+* [How to clear all the annotations from the PDF document?](./how-to/clear-annotations)
+* [How to configure the annotation selector settings?](./how-to/configure-annotationselector-setting-js)
+* [What are the supported conformance or standards of PDF Viewer?](./how-to/conformance)
+* [How to change the border color of rectangle annotations?](./how-to/change-rectangle-annotations-border-color)
+* [How to control the visibility of the annotation?](./how-to/control-annotation-visibility-js)
+* [How to convert the PDF library bounds to PDF viewer bounds?](./how-to/convert-pdf-library-bounds-to-pdf-viewer-bounds-js)
+* [How to create PDF Viewer service using ASP.NET Core?](./how-to/create-pdfviewer-service-core)
+* [How to create PDF viewer web service using ASP.NET MVC?](./how-to/create-pdfviewer-service)
+* [How to customize the context menu in PDF Viewer?](./how-to/custom-context-menu)
+* [How to add custom font in handwritten signature?](./how-to/custom-font-signature-field-js)
+* [How to add custom fonts for form fields and free text annotations?](./how-to/custom-fonts)
+* [How to add a new page to the pdf document?](./how-to/add-new-page-to-the-pdf-document)
+* [How to customize text search highlight color in PDF Viewer?](./how-to/customize-text-search-color)
+* [How to delete a specific annotation from the PDF document?](./how-to/delete-annotation)
+* [How to disable the context menu?](./how-to/disable-context-menu)
+* [How to disable tile rendering in PDF Viewer?](./how-to/disable-tile-rendering)
+* [How to display custom tooltip for annotation?](./how-to/display-custom-tool-tip-for-annotation)
+* [How to download the pdf document when closing the browser window?](./how-to/download-document-on-window-closing)
+* [How to focus on a form field after loading a document?](./how-to/focus-on-a-form-field-after-loading)
+* [How to get the download start event?](./how-to/download-start-event-js)
+* [How to enable or disable the local storage?](./how-to/enable-local-storage-js)
+* [Enable the resizer for text markup annotation?](./how-to/enable-resize)
+* [How to enable or disable the text selection?](./how-to/enable-text-selection-js)
+* [How to export the PDF pages as images?](./how-to/export-as-image-js)
+* [How to extract text from the PDF document?](./how-to/extract-text-completed-js)
+* [How to extract text from a specific region?](./how-to/extract-text-option-js)
+* [How to extract text from the PDF document?](./how-to/extract-text-js)
+* [How to find the text in the PDF document asynchronously?](./how-to/find-text-async-js)
+* [How to get the base64 string of the loaded document?](./how-to/get-base64-js)
+* [How to get the page information of the loaded document?](./how-to/get-page-info-js)
+* [How to perform highlight, underline, and strikethrough for the selected text?](./how-to/highlight-underline-strikeout-text)
+* [How to identify the added annotation and its mode?](./how-to/identify-added-annotation-mode)
+* [How to import annotations from the PDF document?](./how-to/import-annotations)
+* [How to import and export annotations in PDF Viewer?](./how-to/import-export-annotation-js)
+* [How to load a PDF document in PDF Viewer?](./how-to/load-document)
+* [How to set the minimum and maximum zoom percentage?](./how-to/min-max-zoom-js)
+* [How to open the bookmark pane when the document is loaded?](./how-to/open-bookmark-js)
+* [How to open the thumbnail pane when the document is loaded?](./how-to/open-thumbnail)
+* [How to get the annotation when it is overlapped with another annotation on its selection?](./how-to/overlapped-annotation)
+* [How to get the page render started and completed event?](./how-to/pagerenderstarted-pagerendercompleted-js)
+* [How to print the PDF document silently?](./how-to/print-document)
+* [How to resolve the `Unable to find an entry point named 'FreeExportedValues' in DLL 'pdfium''?](./how-to/resolve-unable-to-find-an-entry-point-error)
+* [How to restrict the zooming in mobile mode?](./how-to/restricting-zoom-in-mobile-mode-js)
+* [How to select annotations in multi page?](./how-to/select-multi-page-annotations)
+* [How to show custom stamp item in the stamp annotation?](./how-to/show-custom-stamp-item-js)
+* [How to show or hide a particular annotation?](./how-to/show-hide-annotation-js)
+* [How to get the signature selected and unselected event?](./how-to/signatureselect-signatureunselect-js)
+* [How to unload the PDF document from the viewer?](./how-to/unload-document)
+* [How to use local script and style references?](./how-to/use-local-script-and-style-references)
+
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-annotation-in-text-search-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-annotation-in-text-search-js.md
index b0fbdd140..608f0481f 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-annotation-in-text-search-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-annotation-in-text-search-js.md
@@ -1,39 +1,36 @@
---
layout: post
-title: Add Annotation in Text Search in JavaScript PdfViewer | Syncfusion
-description: Learn how to add rectangle annotations using search text bounds in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Add rectangle annotation via textSearch | Syncfusion PDF Viewer
+description: Learn to add rectangle annotations using text search bounds in the JavaScript PDF Viewer component, including initialization and search controls.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Add Rectangle Annotations Using Search Text Bounds in PDF Viewer
+# Add rectangle annotations using text search bounds in JS PDF Viewer
-## Overview
+A concise guide to adding rectangle annotations at highlighted text search results in the JavaScript PDF Viewer to visually emphasize matches and improve readability.
-This guide demonstrates how to add rectangle annotations based on the bounds of highlighted search text in the PDF Viewer. This technique is useful for emphasizing search results with visual markers in annotation-supported applications.
-
-## Steps to Add Rectangle Annotations on Search Result Highlight
+## Steps to add rectangle annotations on search result highlight
**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started) to create a simple PDF Viewer sample.
-**Step 2:** Initialize the PDF Viewer with Required Modules
+**Step 2:** Initialize the PDF Viewer with the required modules
```js
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl:'https://cdn.syncfusion.com/ej2/28.1.33/dist/ej2-pdfviewer-lib'
+ resourceUrl:'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib'
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
pdfviewer.appendTo('#PdfViewer');
```
-**Step 3:** Implement code blocks to automatically add Rectangle Annotation on Search Result Highlight
+**Step 3:** Add a rectangle annotation when a search result is highlighted
-Define a callback function for the `textSearchHighlight` event to add rectangle annotations
+Define a callback for the `textSearchHighlight` event to add a rectangle annotation at each match.
```js
// Highlight event handler for text search, which adds a rectangle annotation where the text is found
@@ -50,9 +47,9 @@ pdfviewer.textSearchHighlight = function(args){
}
```
-**Step 3:** Add Search Controls
+**Step 4:** Add search controls
-Ensure you have the appropriate HTML buttons for text search operations
+Ensure that the HTML includes buttons for text search operations.
```html
@@ -60,7 +57,7 @@ Ensure you have the appropriate HTML buttons for text search operations
```
-Use the following JavaScript to handle search controls:
+Use the following JavaScript code to handle search controls:
```js
// Event listener for initiating a search
@@ -79,6 +76,6 @@ document.getElementById("searchCancel").addEventListener("click", function() {
});
```
-By following this guide, you will enable the PDF Viewer to add rectangle annotations at search result locations, thus increasing the visibility of search results in your application.
+Following these steps enables the PDF Viewer to add rectangle annotations at search result locations, improving the visibility of matches.
[View Sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to/)
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-header-value.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-header-value.md
index ed3ba91d6..19f5ba372 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-header-value.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-header-value.md
@@ -1,19 +1,17 @@
---
layout: post
-title: Add header value in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Add header value in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Add header values to AJAX requests | Syncfusion PDF Viewer
+description: Learn how to include custom headers in PDF Viewer AJAX requests using ajaxRequestSettings and ajaxHeaders in the JavaScript PDF Viewer component.
platform: document-processing
-control: Add header value
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
-domainurl: ##DomainURL##
---
-# Add header value in Javascript Pdfviewer control
+# Add header values in the JavaScript PDF Viewer
-To add header values to an AJAX request made by a Syncfusion PDF Viewer, you can use the **ajaxHeaders** property available in the [**ajaxRequestSettings**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#ajaxrequestsettings) module of the PDF Viewer. This property allows you to specify custom headers for the AJAX request.
+Use the ajaxHeaders property in the PDF Viewer’s [ajaxRequestSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/#ajaxrequestsettings) to include custom headers with each AJAX request.
-Here is an example of how you can use the **ajaxRequestSettings** property to add a custom header to an AJAX request made by the PDF Viewer:
+Example: Add a custom Authorization header using ajaxRequestSettings
```ts
@@ -31,4 +29,5 @@ viewer.ajaxRequestSettings = {
```
-Find the sample [how to add custom headers in AjaxRequestSettings](https://stackblitz.com/edit/typescript-nv1way?file=index.ts)
\ No newline at end of file
+Sample: How to add custom headers using ajaxRequestSettings
+[StackBlitz example](https://stackblitz.com/edit/typescript-nv1way?file=index.ts)
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-new-page-to-the-pdf-document.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-new-page-to-the-pdf-document.md
index ef549c88b..8640a9db1 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-new-page-to-the-pdf-document.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-new-page-to-the-pdf-document.md
@@ -1,23 +1,22 @@
---
layout: post
-title: Add new page to the pdf document in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Add new page to the pdf document in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Add new page to PDF document - Syncfusion JavaScript PDF Viewer
+description: Learn how to append a new page to a loaded PDF document in the Syncfusion JavaScript PDF Viewer control using the PDF library service.
platform: document-processing
-control: Add new page to the pdf document
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Add new page to the pdf document in Javascript Pdfviewer control
+# Add a new page to a PDF document in JavaScript PDF Viewer control
-The PDF Viewer library allows you to add a new page to the PDF document using the PDF library.
+The JavaScript PDF Viewer library can append a blank page to any loaded PDF document through the accompanying PDF library service.
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
+**Step 1:** Follow the guidance in the [Getting started with the JavaScript PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started) article to configure a working sample.
-**Step 2:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/how-to/create-pdfviewer-service/) to create the PDF Viewer web service.
+**Step 2:** Complete the web service setup by using this [guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/how-to/create-pdfviewer-service).
-**Step 3:** Add the following code sample in the PDF Viewer controller code to add a new page in the PDF document using the PDF library.
+**Step 3:** Add the following controller action to insert a new page into the loaded PDF document before returning it to the viewer.
```javascript
@@ -64,4 +63,4 @@ public IActionResult Load([FromBody] Dictionary jsonObject)
}
```
-[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to/Add%20new%20page%20to%20the%20PDF%20document%20using%20PDF%20library)
\ No newline at end of file
+[View the sample on GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to/Add%20new%20page%20to%20the%20PDF%20document%20using%20PDF%20library)
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-save-button-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-save-button-js.md
index 05a8aa185..91bef26a1 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-save-button-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/add-save-button-js.md
@@ -1,23 +1,22 @@
---
layout: post
-title: Add Save button in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about How to add save button in Toolbar in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Add Save button to toolbar in Syncfusion JavaScript PDF Viewer
+description: Learn how to add, show, hide, enable, and disable a custom Save button in the built-in toolbar of the JavaScript PDF Viewer component.
platform: document-processing
control: Toolbar
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Add Save button in Built-In Toolbar
+# Add Save button in Built-In Toolbar in JavaScript
-PDF Viewer allows you to customize (add, show, hide, enable, and disable) existing items in a toolbar.
+PDF Viewer supports customizing toolbar items, including adding, showing, hiding, enabling, and disabling items.
-* Save button - `Save` button-item can defined by [**CustomToolbarItemModel**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/customToolbarItem/) and with existing items in [**ToolbarSettings**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/toolbarSettings/) property. Newly added save button-item click action can be defined in [`toolbarclick`](https://ej2.syncfusion.com/javascript/documentation/api/toolbar/clickEventArgs/).
+- Save button: The Save button can be defined using [CustomToolbarItemModel](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/customToolbarItem/) and included alongside existing items via [ToolbarSettings](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/toolbarSettings/). Handle the click action using [`toolbarclick`](https://ej2.syncfusion.com/javascript/documentation/api/toolbar/clickEventArgs/).
-* Show, Hide - `Save` button-item can be shown or hidden using the [`ToolbarSettings`](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/toolbarSettings/) property. Pre-defined toolbar items are available with [`ToolbarItem`](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/toolbarItem/).
+- Show or hide: The Save button can be shown or hidden using [ToolbarSettings](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/toolbarSettings/). Predefined items are listed under [`ToolbarItem`](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/toolbarItem/).
-* Enable, Disable - `Save` button-item can be enabled or disable using [`enabletoolbaritem`](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/toolbar/#enabletoolbaritem)
+- Enable or disable: The Save button can be enabled or disabled using [`enabletoolbaritem`](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/toolbar/#enabletoolbaritem).
{% tabs %}
{% highlight js tabtitle="Standalone" %}
@@ -31,7 +30,7 @@ PDF Viewer allows you to customize (add, show, hide, enable, and disable) existi
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath:'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl:'https://cdn.syncfusion.com/ej2/24.1.41/dist/ej2-pdfviewer-lib',
+ resourceUrl:'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
toolbarSettings : { toolbarItems: ['OpenOption', toolItem1, 'PageNavigationTool', 'MagnificationTool', 'PanTool', 'SelectionTool', 'SearchOption', 'PrintOption', 'UndoRedoTool', 'AnnotationEditTool', 'FormDesignerEditTool', 'CommentTool', 'SubmitForm'] }
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields);
@@ -79,35 +78,33 @@ function OnCreateSearch() {
{% endhighlight %}
{% endtabs %}
+N> Default toolbar items: ['OpenOption', 'PageNavigationTool','MagnificationTool', 'PanTool', 'SelectionTool', 'SearchOption', 'PrintOption', 'DownloadOption','UndoRedoTool', 'AnnotationEditTool', 'FormDesignerEditTool', 'CommentTool', 'SubmitForm']
-N> Default value of toolbar items is ['OpenOption', 'PageNavigationTool','MagnificationTool', 'PanTool', 'SelectionTool', 'SearchOption', 'PrintOption', 'DownloadOption','UndoRedoTool', 'AnnotationEditTool', 'FormDesignerEditTool', 'CommentTool', 'SubmitForm']
+### Align property
-### Align Property
+Specifies the alignment of the Save button within the toolbar.
-The align property is used to specify the alignment of a `save` button-item within the toolbar.
+- Left: Aligns the item to the left side of the toolbar.
+- Right: Aligns the item to the right side of the toolbar.
-`Left`: Aligns the item to the left side of the toolbar.
-`Right`: Aligns the item to the right side of the toolbar.
+### Tooltip property
-### Tooltip Property
+Sets the tooltip text for the Save button. The tooltip provides additional information on hover.
-The tooltip property is used to set the tooltip text for a `save` button-item. Tooltip provides additional information when a user hovers over the item.
+### CssClass property
-### CssClass Property
+Applies custom CSS classes to the Save button for styling.
-The cssClass property is used to apply custom CSS classes to a `save` button-item. It allows custom styling of the `save` button-item.
+### Prefix property
-### Prefix Property
+Sets the CSS class or icon to add as a prefix to the Save button content.
-The prefix property is used to set the CSS class or icon that should be added as a prefix to the existing content of the `save` button-item.
+### ID property
-### ID Property
+The id property within a CustomToolbarItemModel is required and uniquely identifies each toolbar item for configuration and interaction.
-The id property within a CustomToolbarItemModel is a compulsory attribute that plays a vital role in toolbar customization. It serves as a unique identifier for each toolbar item, facilitating distinct references and interactions.
+When defining or customizing toolbar items, assign a specific, descriptive id to each item. These properties are commonly used when defining custom toolbar items with `CustomToolbarItemModel` in the context of Syncfusion PDF Viewer. When configuring the toolbar using the `ToolbarSettings` property, include these properties to customize appearance and behavior.
-When defining or customizing toolbar items, it is mandatory to assign a specific and descriptive id to each item.
-These properties are commonly used when defining custom toolbar items with the `CustomToolbarItemModel`` in the context of Syncfusion PDF Viewer. When configuring the toolbar using the `ToolbarSettings`` property, you can include these properties to customize the appearance and behavior of each toolbar item.
-
-N> When customizing `save` button-item, you have the flexibility to include either icons or text based on your design preference.
+N> When customizing the Save button, icons or text can be used based on design preference.
[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to/Add%20Save%20Button%20In%20Toolbar)
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/annotation-selector.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/annotation-selector.md
index 758c6c10f..3e90a4a44 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/annotation-selector.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/annotation-selector.md
@@ -1,19 +1,18 @@
---
layout: post
-title: Annotation selector in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Annotation selector in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Annotation selector customization | Syncfusion PDF Viewer
+description: Learn how to customize annotation selectors in the JavaScript PDF Viewer component using annotationSelectorSettings with examples.
platform: document-processing
-control: Annotation selector
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Annotation selector in Javascript Pdfviewer control
+# Customize annotation selectors in JavaScript ES5 PDF Viewer
-To customize the annotation selector in Syncfusion PDF Viewer, you can use the [**annotationSelectorSettings**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#annotationselectorsettings) property of the PdfViewer control.
+Customize the annotation selector using the [annotationSelectorSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/#annotationselectorsettings) property of the PDF Viewer.
-Here is an example of how you can customize the selector of the shape annotation:
+Example: Customize the selector of a shape annotation
```
@@ -30,4 +29,5 @@ document.getElementById('annotationSelector').addEventListener('click', () => {
```
-Find the sample [how to customize the annotation selector](https://stackblitz.com/edit/js-5p3ae6?file=index.js)
\ No newline at end of file
+Sample: [How to customize the annotation selector]
+(https://stackblitz.com/edit/js-5p3ae6?file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/change-author-name-using-annotation-settings.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/change-author-name-using-annotation-settings.md
index 056a75dbf..a5dbb0528 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/change-author-name-using-annotation-settings.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/change-author-name-using-annotation-settings.md
@@ -1,34 +1,33 @@
---
layout: post
-title: Change author name using annotation settings in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Change author name using annotation settings in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Change author name using annotation settings in JavaScript PDF Viewer | Syncfusion
+description: Learn how to change the author name and related annotation settings using the annotationSettings API in the JavaScript PDF Viewer.
platform: document-processing
-control: Change author name using annotation settings
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Change author name using annotation settings in Javascript Pdfviewer control
+# Change author name using annotation settings in JavaScript PDF Viewer
-The Essential JavaScript PDF Viewer supports to customize a single property of the annotation settings by exposing an API for the properties common to all the annotations.
+The PDF Viewer allows customizing individual annotation settings using the annotationSettings API, which exposes properties common to all annotations.
-**API Name** : annotationSettings
+API name: annotationSettings
-|Property Name|Data type & Default Value|Description|
+| Property Name | Data type & Default Value | Description |
|---|---|---|
-|author|String(“Guest”)|specifies the author of the annotation.|
-|minWidth|Number(0)|specifies the minWidth of the annotation.|
-|maxWidth|Number(0)|specifies the maxWidth of the annotation.|
-|minHeight|Number(0)|specifies the minHeight of the annotation.|
-|maxHeight|Number(0)|specifies the maxHeight of the annotation.|
-|isLock|Boolean(false)|specifies the locked action of the annotations. [If set true unable to select the annotations]|
-|isPrint|Boolean(true)|specifies whether the annotations are included or not in Print actions.|
-|isDownload|Boolean(true|specifies whether the annotations are included or not in Download actions.|
-|Free Text Settings|
-|allowOnlyTextInput|Boolean(false)|specifies the allow only text action of the free text annotation. [If set true unable to move or resize the annotations]|
-
-You can change the author name and the other properties using the annotationSettings API as in the following code sample.
+| author | String ("Guest") | Specifies the author of the annotation. |
+| minWidth | Number (0) | Specifies the minimum width of the annotation. |
+| maxWidth | Number (0) | Specifies the maximum width of the annotation. |
+| minHeight | Number (0) | Specifies the minimum height of the annotation. |
+| maxHeight | Number (0) | Specifies the maximum height of the annotation. |
+| isLock | Boolean (false) | Specifies whether the annotation is locked. If true, the annotation cannot be selected. |
+| isPrint | Boolean (true) | Specifies whether the annotation is included in print actions. |
+| isDownload | Boolean (true) | Specifies whether the annotation is included in download actions. |
+| Free Text Settings |
+| allowOnlyTextInput | Boolean (false) | Specifies text-only mode for free text annotations. If true, moving or resizing is disabled. |
+
+Change the author name and other properties using the annotationSettings API as shown below.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/change-rectangle-annotations-border-color.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/change-rectangle-annotations-border-color.md
index 2bc69dd94..38b798434 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/change-rectangle-annotations-border-color.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/change-rectangle-annotations-border-color.md
@@ -1,21 +1,20 @@
---
layout: post
-title: Change rectangle annotations border color in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Change rectangle annotations border color in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Change rectangle annotation border color in JavaScript PDF Viewer control | Syncfusion
+description: Learn how to change the rectangle annotation border color in the Syncfusion JavaScript PDF Viewer control by configuring rectangleSettings.
platform: document-processing
-control: Change rectangle annotations border color
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Change rectangle annotations border color in Javascript Pdfviewer control
+# Change rectangle annotation border color in JavaScript PDF Viewer
-The Essential JavaScript PDF Viewer supports customizing the rectangle annotation's property by using the [rectangleSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/#rectanglesettings) API.
+The JavaScript PDF Viewer enables customizing rectangle annotation appearance through the [rectangleSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/#rectanglesettings) API, including border color updates.
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create simple PDF Viewer sample.
+**Step 1:** Follow the [Getting started with the JavaScript PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) guide to create a working sample.
-**Step 2:** Add the following code snippet to change the rectangle annotation's border color using the [rectangleSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/#rectanglesettings) API.
+**Step 2:** Insert the following interface elements and script to change the rectangle annotation border color by using the [rectangleSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/#rectanglesettings) API.
```
@@ -40,4 +39,4 @@ document.getElementById("addRectangleAnnotation").addEventListener('click', func
```
-[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/Annotations/How%20to%20change%20the%20rectangle%20annotation's%20border%20color)
\ No newline at end of file
+[View the sample on GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/Annotations/How%20to%20change%20the%20rectangle%20annotation's%20border%20color)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/clear-annotation.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/clear-annotation.md
index fa4627822..1b197a416 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/clear-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/clear-annotation.md
@@ -1,19 +1,18 @@
---
layout: post
-title: Clear annotation in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Clear annotation in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Clear annotations in JavaScript PDF Viewer | Syncfusion
+description: Learn how to clear all annotations or delete specific annotations in the JavaScript PDF Viewer using deleteAnnotations and deleteAnnotationById.
platform: document-processing
-control: Clear annotation
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Clear annotation in Javascript Pdfviewer control
+# Clear annotations in JavaScript PDF Viewer
-To clear all the annotations in a PDF document using the Syncfusion PDF Viewer, you can use the [**deleteAnnotations**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#deleteannotations) method. This method is used to clear all the annotations present in the currently loaded document.
+Use the [deleteAnnotations](https://ej2.syncfusion.com/documentation/api/pdfviewer/#deleteannotations) method to clear all annotations in the currently loaded document.
-Here is an example of how you can clear all the annotations present in the currently loaded document:
+Example: Clear all annotations in the loaded document
```
@@ -30,9 +29,9 @@ document.getElementById('deleteAnnotations').addEventListener('click',()=> {
```
-We can also delete specific annotations with the **deleteAnnotationById()** method. This method is used to delete a specific annotation using its id.
+To remove a specific annotation, use the deleteAnnotationById method to target an annotation by its id.
-Here is an example of how you can delete specific annotations with the **deleteAnnotationById** method:
+Example: Delete a specific annotation by id
```
@@ -51,4 +50,4 @@ document.getElementById('deleteAnnotationbyId').addEventListener('click', () =>
```
-Find the sample [how to clear annotations using deleteAnnotations](https://stackblitz.com/edit/js-mctbeq?file=index.js)
\ No newline at end of file
+Sample: [How to clear annotations using deleteAnnotations](https://stackblitz.com/edit/js-mctbeq?file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/configure-annotationselector-setting-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/configure-annotationselector-setting-js.md
index 0f6d82694..e7622db1a 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/configure-annotationselector-setting-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/configure-annotationselector-setting-js.md
@@ -1,30 +1,25 @@
---
layout: post
-title: Annotation Selector Setting in Javascript Pdfviewer|Syncfusion.
-description: Learn here all about Annotation Selector Settings in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Configure annotation selector settings in JavaScript PDF Viewer | Syncfusion
+description: Learn how to configure annotation selector settings in the JavaScript PDF Viewer using annotationSelectorSettings and related options.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
+# Configure annotation selector settings
-# How to Configure Annotation Selector Settings
-
-### Annotation Selector Settings
-
-The [**annotationSelectorSettings**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotationSelectorSettings/) property allows you to customize the appearance and behavior of the annotation selector in the UI.
+Use the [annotationSelectorSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotationSelectorSettings/) property to customize the appearance and behavior of the annotation selector in the UI.
### AnnotationSelectorSettingsModel
-The [**AnnotationSelectorSettingsModel**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotationSelectorSettingsModel/) defines the settings for the annotation selector, including border colors, sizes, and shapes. It provides fine-grained control over how annotations are displayed and interacted with.
-
-### How to Configure Annotation Selector Settings
+The [AnnotationSelectorSettingsModel](https://ej2.syncfusion.com/documentation/api/accumulation-chart/accumulationAnnotationSettingsModel/) defines settings such as border colors, sizes, and shapes, enabling fine-grained control over how annotations are displayed and interacted with.
-**Step 1:** Create a PdfViewer Instance: Initialize your PdfViewer instance.
+Steps to configure annotation selector settings
-**Step 2:** Set the annotationSelectorSettings Property: Define your settings to customize the annotation selector.
+- Step 1: Create a PDF Viewer instance and initialize it.
+- Step 2: Set the annotationSelectorSettings property to customize selector behavior.
```js
let viewer: PdfViewer = new PdfViewer();
@@ -42,26 +37,18 @@ The [**AnnotationSelectorSettingsModel**](https://ej2.syncfusion.com/javascript/
viewer.appendTo("#pdfViewer");
```
-**Step 3:** Append the Viewer to Your HTML Element: Use the appendTo method to render the PDF viewer in your desired HTML element.
-
-#### Key properties include:
-
-* **selectionBorderColor:** Sets the color for the border around selected annotations.
-
-* **resizerBorderColor:** Sets the color for the border of the resizer handles.
-
-* **resizerFillColor:** Defines the fill color for the resizer handles.
-
-* **resizerSize:** Determines the size of the resizer handles.
-
-* **selectionBorderThickness:** Specifies how thick the selection border should be.
-
-* **resizerShape:** Allows you to choose the shape of the resizer handles (e.g., Circle or Square).
-
-* **selectorLineDashArray:** Specifies the dash pattern for the selector line to enhance visual cues.
+- Step 3: Append the viewer to the target HTML element using appendTo.
-* **resizerLocation:** Determines where the resizer appear in relation to the annotation (e.g., Corners or Edges).
+#### Key properties
-* **resizerCursorType:** Sets the cursor style when hovering over the resizer, improving user interaction.
+- selectionBorderColor: Sets the color for the border around selected annotations.
+- resizerBorderColor: Sets the color for the border of the resizer handles.
+- resizerFillColor: Defines the fill color for the resizer handles.
+- resizerSize: Determines the size of the resizer handles.
+- selectionBorderThickness: Specifies the thickness of the selection border.
+- resizerShape: Sets the shape of the resizer handles (for example, Circle or Square).
+- selectorLineDashArray: Specifies the dash pattern for the selector line.
+- resizerLocation: Determines where the resizers appear relative to the annotation (for example, Corners or Edges).
+- resizerCursorType: Sets the cursor style when hovering over a resizer.
[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/conformance.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/conformance.md
index c6230b2fa..b6769a793 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/conformance.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/conformance.md
@@ -1,27 +1,26 @@
---
layout: post
-title: Know the supported conformance PDF documents | Syncfusion
-description: Learn here all about the supported conformance PDF documents in Syncfusion Javascript PDF Viewer component of Syncfusion Essential JS 2 and more.
+title: Supported PDF conformance levels | Syncfusion
+description: Learn about the supported PDF/A and PDF/X conformance levels in the JavaScript PDF Viewer component.
platform: document-processing
-control: Conformance
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Know the supported conformance PDF documents in Javascript PDF Viewer component
+# Supported PDF conformance in JavaScript PDF Viewer
-The PDF Viewer supports the below conformance documents:
+The PDF Viewer supports the following conformance levels:
-* **PDF/A-1a conformance**
-* **PDF/A-1b conformance**
-* **PDF/X-1a conformance**
-* **PDF/A-2a conformance**
-* **PDF/A-2b conformance**
-* **PDF/A-2u conformance**
-* **PDF/A-3a conformance**
-* **PDF/A-3b conformance**
-* **PDF/A-3u conformance**
-* **PDF/A-4 conformance**
-* **PDF/A-4e conformance**
-* **PDF/A-4f conformance**
\ No newline at end of file
+* PDF/A-1a
+* PDF/A-1b
+* PDF/X-1a
+* PDF/A-2a
+* PDF/A-2b
+* PDF/A-2u
+* PDF/A-3a
+* PDF/A-3b
+* PDF/A-3u
+* PDF/A-4
+* PDF/A-4e
+* PDF/A-4f
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/control-annotation-visibility-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/control-annotation-visibility-js.md
index c5384930a..05eeb3013 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/control-annotation-visibility-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/control-annotation-visibility-js.md
@@ -1,38 +1,40 @@
---
layout: post
-title: Control Annotations Visibility in JavaScript PdfViewer | Syncfusion
-description: Learn how to Control Annotations Visibility in the Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Control annotation visibility in JavaScript PDF Viewer | Syncfusion
+description: Learn how to control the visibility of PDF annotations in the JavaScript PDF Viewer, ensuring annotations appear only in the viewer as needed.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Control PDF Annotations Visibility in PDF Viewer
+# Control annotation visibility in PDF Viewer
### Overview
-This guide demonstrates how to control the visibility of PDF annotations in documents loaded and saved using the Syncfusion PDF Viewer in JavaScript. This process allows the annotations to be visible only in specific viewers, such as the Syncfusion PDF Viewer.
+This guide explains how to control the visibility of PDF annotations in documents loaded and saved using the Syncfusion PDF Viewer in JavaScript, so annotations are visible only in the viewer when required.
-### How to control Annotation Visibility
+### Steps to control annotation visibility
**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
-**Step 2:** Add Buttons for Annotation Modification and Downloading
+**Step 2:** Add buttons for annotation modification and downloading
-Include buttons in your HTML for annotation modification and downloading the PDF.
+Include buttons in the HTML for modifying annotations and downloading the PDF.
```html
```
-**Step 3**: Add the following code snippet to add annotations to the PDF document. You can also include other annotations as needed.
+
+**Step 3:** Add annotations to the PDF document
+
+Add the following code to insert annotations. Additional annotations can be included as needed.
```js
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: 'https://cdn.syncfusion.com/content/pdf/annotations-v1.pdf',
- resourceUrl: "https://cdn.syncfusion.com/ej2/28.1.33/dist/ej2-pdfviewer-lib",
+ resourceUrl: "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -53,18 +55,19 @@ var pdfviewer = new ej.pdfviewer.PdfViewer({
});
};
```
-**Step 4:** Add Event Listeners for Button Clicks
-Attach event listeners that handle annotation visibility modifications and downloading the document.
+**Step 4:** Add event listeners for button clicks
+
+Attach an event listener to handle annotation visibility changes and document download.
```js
// Add event listener to the button with ID 'download'
document.getElementById('save').addEventListener('click', save);
```
-**Step 5:** Modify Annotation Flags Function
+**Step 5:** Modify annotation flags
-Implement a function that changes the annotation visibility settings for the document.
+Implement a function that updates annotation visibility flags for the document.
```js
@@ -118,6 +121,6 @@ Implement a function that changes the annotation visibility settings for the doc
}
```
-By following these steps, the annotations in a PDF document can be set to be visible in the Syncfusion PDF Viewer, providing control over annotation visibility based on different platforms.
+Following these steps ensures annotations are visible in the Syncfusion PDF Viewer while controlling their visibility in the downloaded PDF.
[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/convert-pdf-library-bounds-to-pdf-viewer-bounds-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/convert-pdf-library-bounds-to-pdf-viewer-bounds-js.md
index f86eb23e7..2a5c80fd0 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/convert-pdf-library-bounds-to-pdf-viewer-bounds-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/convert-pdf-library-bounds-to-pdf-viewer-bounds-js.md
@@ -1,25 +1,22 @@
---
layout: post
-title: Converting Library Bounds in JavaScript PdfViewer | Syncfusion
-description: Learn how to convert Library bounds into Viewer bounds in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Convert PDF Library bounds to PDF Viewer bounds in JavaScript PDF Viewer | Syncfusion
+description: Learn how to convert PDF Library bounds into PDF Viewer bounds when exporting annotations, ensuring accurate placement in the JavaScript PDF Viewer.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Converting PDF Library Bounds to PDF Viewer Bounds
+# Convert PDF Library bounds to PDF Viewer bounds
-### Overview
+When exporting annotations from the PDF Library, convert the bounds values into the PDF Viewer format to ensure accurate placement.
-When exporting annotations from the PDF Library, you may need to convert the bounds values into the PDF Viewer format. This guide will help you achieve that using the Syncfusion PDF Viewer component.
+### Steps to convert bounds values
-### How to Convert Bounds Values
+**Step 1:** Initialize the PDF Viewer instance
-**Step 1:** Initialize the PdfViewer Instance
-
-Create an instance of the PdfViewer and configure it with the required services.
+Create an instance of the PDF Viewer and configure it with the required services.
```js
var pdfviewer = new ej.pdfviewer.PdfViewer({
@@ -43,7 +40,7 @@ ej.pdfviewer.PdfViewer.Inject(
pdfviewer.appendTo('#PdfViewer');
```
-**Step 2:** Handle Export Success
+**Step 2:** Handle export success
Convert the exported blob URL to an object and then extract and convert the annotation bounds.
@@ -104,9 +101,9 @@ pdfviewer.exportSuccess = function (args) {
};
```
-**Step 3:** Create a Function to Convert Blob URL to Object
+**Step 3:** Convert Blob URL to object
-This function fetches the blob data and converts it into a JSON object.
+Fetch the blob data and convert it into a JSON object.
```js
// Function to convert Blob URL to object
@@ -128,6 +125,6 @@ function convertBlobURLToObject(blobURL) {
### Conclusion
-By following these steps, you can successfully convert PDF Library bounds values into PDF Viewer bounds values when exporting annotations as JSON. This will help maintain accuracy in the annotation placement and ensure a seamless user experience.
+These steps convert PDF Library bounds values into PDF Viewer bounds values when exporting annotations as JSON, maintaining accurate annotation placement.
[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/create-pdfviewer-service-core.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/create-pdfviewer-service-core.md
index 42009e309..7673c6cd5 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/create-pdfviewer-service-core.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/create-pdfviewer-service-core.md
@@ -1,24 +1,23 @@
---
layout: post
-title: Create pdfviewer service in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Create pdfviewer service in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Create PDF Viewer service in JavaScript PDF Viewer | Syncfusion
+description: Learn how to create an ASP.NET Core Web API service for the JavaScript PDF Viewer to handle server-side processing for rendering, text extraction, thumbnails, and more.
platform: document-processing
-control: Create pdfviewer service
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Create pdfviewer service in Javascript Pdfviewer control
+# Create PDF Viewer service in JavaScript PDF Viewer
-The Essential JavaScript PDF Viewer have server side dependency to get the details from PDF Documents for rendering. This section explains how to create the service for PDF Viewer to perform server-side preprocessing of the PDF document to be rendered in client side.
+The PDF Viewer depends on a server-side service to process PDF documents for rendering. This section explains how to create an ASP.NET Core Web API service for the PDF Viewer to perform server-side preprocessing and operations used by the client.
## Prerequisites
-To get started with ASP.NET CORE Web API service, refer [System requirements for ASP.NET Core controls](https://ej2.syncfusion.com/aspnetcore/documentation/system-requirements).
+To get started with an ASP.NET Core Web API service, refer to [System requirements for ASP.NET Core controls](https://ej2.syncfusion.com/aspnetcore/documentation/system-requirements)
-## Setup ASP.NET CORE application with Web API for PDF Viewer service
+## Set up an ASP.NET Core application with Web API for the PDF Viewer service
-The following steps are used to create PDF Viewer service
+Follow these steps to create the PDF Viewer service
**Step 1:** Select File > New > Project, in the Visual Studio menu bar.
@@ -45,7 +44,7 @@ Install the **Syncfusion.EJ2.PdfViewer.AspNet.Core** package to the application.

-**Step 6:** Add the API Controller to the project and named it as `PdfViewerController` .
+**Step 6:** Add an API controller to the project and name it `PdfViewerController`.

**Step 7:** Add the following code to the `PdfViewerController.cs` controller.
@@ -345,7 +344,7 @@ namespace PdfViewerWebService
```
-**Step 8:** Change the launchUrl to pdfviewer (name of the controller) in the lauchSettings.json as follows.
+**Step 8:** Change the launchUrl to pdfviewer (the controller name) in launchSettings.json as follows.
```json
{
@@ -380,9 +379,9 @@ namespace PdfViewerWebService
}
```
-**Step 9:** Configuring CORS policy and add Newtonsoft.Json for JSON format support
-* Browser security prevents a webpage from making requests to a different domain than the one that served the webpage. This restriction is called the same-origin policy. Cross Origin Resource Sharing (CORS) allows a server to relax the same-origin policy. Using CORS, a server can explicitly allow some cross-origin. Configure a CORS policy at application Startup.ConfigureServices.
-* Prior to ASP.NET Core 3.0, the default JSON formatters implemented using the Newtonsoft.Json package. In ASP.NET Core 3.0 or later, the default JSON formatters are based on System.Text.Json. Support for Newtonsoft.Json based formatters and features is available by installing the Microsoft.AspNetCore.Mvc.NewtonsoftJson NuGet package and configuring it in Startup.ConfigureServices.
+**Step 9:** Configure CORS and add Newtonsoft.Json for JSON format support
+- Browsers restrict cross-origin requests by default (same-origin policy). Cross-Origin Resource Sharing (CORS) allows specific cross-origin requests. Configure a CORS policy during application startup.
+- In ASP.NET Core 3.0 or later, System.Text.Json is the default. To use Newtonsoft.Json-based formatters and features, install Microsoft.AspNetCore.Mvc.NewtonsoftJson and configure it at startup.
```cs
using Microsoft.AspNetCore.ResponseCompression;
@@ -427,4 +426,4 @@ app.MapControllers();
app.Run();
```
-View the sample in GitHub to [create PDF Viewer web service](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices/tree/main/ASP.NET%20Core/PdfViewerWebService_6.0)
\ No newline at end of file
+View the sample in GitHub on [how to create PDF Viewer web service](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices/tree/main/ASP.NET%20Core/PdfViewerWebService_6.0)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/create-pdfviewer-service.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/create-pdfviewer-service.md
index 3fadb97b0..04bab6b43 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/create-pdfviewer-service.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/create-pdfviewer-service.md
@@ -1,47 +1,46 @@
---
layout: post
-title: Create pdfviewer service in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Create pdfviewer service in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Create PDF Viewer service using ASP.NET MVC | Syncfusion
+description: Learn how to create an ASP.NET MVC Web API service for the JavaScript PDF Viewer to handle server-side processing for rendering and related operations.
platform: document-processing
-control: Create pdfviewer service
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Create pdfviewer service in Javascript Pdfviewer control
+# Create PDF Viewer service using ASP.NET MVC
-The Essential JavaScript PDF Viewer have server side dependency to get the details from PDF Documents for rendering. This section explains how to create the service for PDF Viewer to perform server-side preprocessing of the PDF document to be rendered in client side.
+The PDF Viewer relies on a server-side service to process PDF documents for rendering. This section explains how to create an ASP.NET MVC Web API service to perform server-side preprocessing for the client.
## Prerequisites
-To get started with ASP.NET MVC Web API service, ensure that the following software is installed on the machine.
+To get started with an ASP.NET MVC Web API service, ensure the following software is installed:
-* .Net Framework 4.5 and above.
+* .NET Framework 4.5 or later
* ASP.NET MVC 4 or ASP.NET MVC 5
* Web API
* Visual Studio
-## Setup ASP.NET MVC application with Web API for PDF Viewer service
+## Set up an ASP.NET MVC application with Web API for the PDF Viewer service
-The following steps are used to create PDF Viewer service
+Follow these steps to create the PDF Viewer service
-**Step 1:** Create an ASP.NET web application with the default template project in Visual Studio 2017.
+**Step 1:** Create an ASP.NET web application using the default template in Visual Studio 2017.

-**Step 2:** After creating the project, add the `Syncfusion.EJ2.PdfViewer.AspNet.MVC5` dependency to your project by using 'NuGet Package Manager'.
+**Step 2:** After creating the project, add the `Syncfusion.EJ2.PdfViewer.AspNet.MVC5` dependency using NuGet Package Manager.
Open the `NuGet` package manager.

-Install the **Syncfusion.EJ2.PdfViewer.AspNet.Mvc5** package to the application.
+Install the **Syncfusion.EJ2.PdfViewer.AspNet.Mvc5** package for the application.

-**Step 3:** Add the Web API 2 Controller to the project and named it as `PdfViewerController` .
+**Step 3:** Add a Web API 2 controller to the project and name it `PdfViewerController`.

-**Step 4:** Add the following code to the `PdfViewerController.cs` controller.
+**Step 4:** Add the following code to `PdfViewerController.cs`.
```ts
using Newtonsoft.Json;
@@ -266,7 +265,7 @@ namespace MvcWebService.webapi
```
-**Step 6:** Set the Global configuration in the `Global.asax` file:
+**Step 6:** Set global configuration in `Global.asax`:
```
System.Web.Http.GlobalConfiguration.Configuration.Routes.MapHttpRoute(
@@ -276,4 +275,4 @@ namespace MvcWebService.webapi
AppDomain.CurrentDomain.SetData("SQLServerCompactEditionUnderWebHosting", true);
```
-Download the sample to create PDF Viewer web service [here](https://www.syncfusion.com/downloads/support/directtrac/general/ze/MvcWebService587924662.zip)
\ No newline at end of file
+Download the sample to [create a PDF Viewer web service](https://www.syncfusion.com/downloads/support/directtrac/general/ze/MvcWebService587924662.zip)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/custom-context-menu-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/custom-context-menu-js.md
index 98a02de9a..f41cc0c91 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/custom-context-menu-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/custom-context-menu-js.md
@@ -1,26 +1,25 @@
---
layout: post
-title: Customize context menu in Javascript PDF Viewer control | Syncfusion
-description: Learn here all about Customize context menu in Syncfusion Javascript PDF Viewer control of Syncfusion Essential JS 2 and more.
+title: Customize the context menu in JavaScript PDF Viewer | Syncfusion
+description: Learn how to add and customize custom context menu options in the JavaScript PDF Viewer using addCustomMenu, customContextMenuSelect, and related events.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Customize context menu in Javascript Pdfviewer control
+# Customize the context menu in JavaScript PDF Viewer
-PDF Viewer allows you to add custom option in context menu. It can be achieved by using the [addCustomMenu()](https://ej2.syncfusion.com/documentation/api/pdfviewer/#addcustommenu) method and custom action is defined using the [customContextMenuSelect()](https://ej2.syncfusion.com/documentation/api/pdfviewer/#customcontextmenuselect)method.
+PDF Viewer supports adding custom options to the context menu using the [addCustomMenu()](https://ej2.syncfusion.com/documentation/api/pdfviewer/#addcustommenu) method. Define actions for custom items with the [customContextMenuSelect()](https://ej2.syncfusion.com/documentation/api/pdfviewer/#customcontextMenuselect) method.
-### Add Custom Option
+### Add a custom option
-The following code shows how to add custom option in context menu.
+The following example adds custom options to the context menu.
```js
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl:'https://cdn.syncfusion.com/ej2/24.2.3/dist/ej2-pdfviewer-lib'
+ resourceUrl:'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib'
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields,ej.pdfviewer.PageOrganizer);
@@ -59,14 +58,14 @@ pdfviewer.documentLoad = function (args) {
}
```
-### Customize custom option in context menu
+### Customize the default vs custom menu
-The PDF Viewer feature enables customization of custom options and the ability to toggle the display of the default context menu. When the addCustomMenu parameter is set to `true`, the default menu is hidden; conversely, when it is set to `false`, the default menu items are displayed.
+Toggle the display of the default context menu. When the addCustomMenu parameter is `true`, the default menu is hidden; when `false`, default menu items are displayed alongside custom items.
```js
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl:'https://cdn.syncfusion.com/ej2/24.2.3/dist/ej2-pdfviewer-lib'
+ resourceUrl:'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib'
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields,ej.pdfviewer.PageOrganizer);
@@ -105,14 +104,14 @@ pdfviewer.documentLoad = function (args) {
}
```
-#### Customize added context menu items
+#### Show or hide custom items before opening
-The following code shows how to hide/show added custom option in context menu using the [customContextMenuBeforeOpen()](https://ej2.syncfusion.com/documentation/api/pdfviewer/#customcontextmenubeforeopen) method.
+Use [customContextMenuBeforeOpen()](https://ej2.syncfusion.com/documentation/api/pdfviewer/#customcontextmenubeforeopen) to hide or show custom options dynamically.
```js
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl:'https://cdn.syncfusion.com/ej2/24.2.3/dist/ej2-pdfviewer-lib'
+ resourceUrl:'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib'
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar, ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields,ej.pdfviewer.PageOrganizer);
@@ -261,7 +260,8 @@ function setReadOnlyFalse(args) {
}
}
```
-The following is the output of custom context menu with customization.
+
+The following is the output of the custom context menu with customization.
{% tabs %}
{% highlight ts tabtitle="index.js" %}
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/custom-font-signature-field-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/custom-font-signature-field-js.md
index db666c76b..a2b60314f 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/custom-font-signature-field-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/custom-font-signature-field-js.md
@@ -1,23 +1,24 @@
---
layout: post
-title: How to change font family in Javascript Pdfviewer|Syncfusion.
-description: Learn how to change the font family in Form Field's Type Signature in Syncfusion Javascript Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Change font family in JavaScript PDF Viewer | Syncfusion
+description: Learn how to change the font family for form field type signatures and initials in the JavaScript PDF Viewer using typeSignatureFonts and typeInitialFonts.
platform: document-processing
control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# To Change the Font Family
-Change the Font Family in Type Signature of the Syncfusion PDF Viewer by adding a custom css stylesheet to the document , and then apply the desired font family to the type signature element. Include the Google font link in the HTML head section to apply the Google Font.
+# Change the font family for type signatures
-### Signature Field property
+Change the font family for Type Signature and Initial fields by adding a stylesheet to load fonts and assigning them via the PDF Viewer settings. Include Google Font links in the HTML head to use those fonts.
-The Syncfusion PDF Viewer provides the ability to change the font family for Signature and Initial Field using `typeSignatureFont` and `typeInitialFonts` property.
+### Signature field property
+
+The PDF Viewer supports changing fonts for Signature and Initial fields using the `typeSignatureFonts` and `typeInitialFonts` properties.
**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started) to create a simple PDF Viewer sample.
-**Step 2:** Insert the following code snippet to implement the functionality for using custom fonts in Signature field.
+**Step 2:** Use the following code to apply custom fonts to the Signature field.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -42,9 +43,10 @@ pdfviewer.appendTo('#PdfViewer');
{% endhighlight %}
{% endtabs %}
-### Initial Field property
-Insert the following code snippet to implement the functionality for using custom fonts in Initial field.
+### Initial field property
+
+Use the following code to apply custom fonts to the Initial field.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -70,4 +72,4 @@ pdfviewer.appendTo('#PdfViewer');
{% endhighlight %}
{% endtabs %}
-By implementing this , you can use custom fonts in form field's signature in both `signature` and `initial` field
+By implementing this configuration, custom fonts can be used for both Signature and Initial form fields.
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/custom-fonts.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/custom-fonts.md
index d91c1aeab..4c9ebed17 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/custom-fonts.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/custom-fonts.md
@@ -1,31 +1,35 @@
---
layout: post
-title: Add Custom fonts in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about how to add custom fonts using the PDF document in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Add custom fonts in JavaScript PDF Viewer | Syncfusion
+description: Learn how to add and load custom TTF fonts for documents displayed in the JavaScript PDF Viewer using the customFonts property.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# How to add custom fonts to the PDF viewer used in the PDF document
+# Add custom fonts in PDF Viewer
-To use custom fonts in the Syncfusion PDF Viewer within your PDF document, you need to add the custom TTF font files to the resource URL directory and configure the viewer to load these fonts. You can specify the custom font names using the
-**customFonts** property, which accepts an array of font names.
+The JavaScript PDF Viewer supports loading, editing, and saving custom fonts in form fields such as text boxes, list boxes, and drop-downs by using the customFonts property. Add the required TTF files to the resource URL directory used by the viewer so they can be loaded at runtime and used in forms.
-The following steps are used to customize the selection border.
+## Integrating Custom Font Collections into Form Fields in PDF Viewer
-**Step 1:** Add the custom TTF font files to the resource URL path referenced in your application. For example, place the custom TTF files in the ej2-pdfviewer-lib folder, which will serve as the resource URL path.
+To ensure proper rendering and saving of form fields that use custom fonts, especially when the fonts are not installed on the system, place the TTF files in the resource URL path referenced by the viewer and specify their names through the customFonts property (string array). These fonts will then be available for loading, editing, and saving form fields in the PDF.
-**Step 2:** The following code snippet are how you can add custom fonts to the PDF viewer.
+To use custom fonts in the Syncfusion PDF Viewer, add the custom TTF files to the resource URL directory and configure the viewer to load them. Specify font file names using the `customFonts` property as an array of names.
+
+### Steps to add custom fonts
+
+**Step 1:** Add custom TTF font files to the resource URL path referenced in the application. For example, place the TTF files in the ej2-pdfviewer-lib folder that serves as the resource URL path.
+
+**Step 2:** Use the following code to configure custom fonts in the PDF Viewer.
{% tabs %}
{% highlight js tabtitle="Standalone" %}
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath:'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl:'https://cdn.syncfusion.com/ej2/24.1.41/dist/ej2-pdfviewer-lib',
+ resourceUrl:'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
customFonts: ["arialbd.ttf", "arial.ttf", "BKANT.TTF", "calibri.ttf", "GARA.TTF", "GARAIT.TTF", "msgothic.ttc", "trebuc.ttf", "wingding.ttf"]
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields);
@@ -49,4 +53,6 @@ pdfviewer.appendTo('#PdfViewer');
{% endhighlight %}
{% endtabs %}
-By following these steps, you can successfully integrate and use custom fonts in your PDF documents displayed in the EJ2 PDF Viewer.
\ No newline at end of file
+These steps integrate custom fonts into PDF documents displayed in the PDF Viewer.
+
+>Note: If a form field (TextBox, ListBox, DropDown) using a custom font has text larger than the field’s bounds, the downloaded PDF may render incorrectly in browsers or third‑party viewers. It displays correctly in the Syncfusion PDF Viewer. To avoid this, use a font size that fits within the field or enlarge the field before saving/downloading.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/customize-text-search-colors.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/customize-text-search-colors.md
index 47783b299..1d00d1609 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/customize-text-search-colors.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/customize-text-search-colors.md
@@ -1,17 +1,16 @@
---
layout: post
-title: Customize text search colors in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Customize text search colors in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Customize text search color in JavaScript PDF Viewer | Syncfusion
+description: Learn how to customize text search and highlight colors in the JavaScript PDF Viewer using textSearchColorSettings.
platform: document-processing
-control: Customize text search colors
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Customize text search colors in Javascript Pdfviewer control
+# Customize text search color in PDF Viewer
-To change the text search color in the Syncfusion PDF viewer, you can use the **searchColor** property of the searchModule object. This property accepts a string value that represents the color in hexadecimal format.
+Change the text search colors using the `textSearchColorSettings` properties. Set `searchColor` for matched text and `searchHighlightColor` for the active result. Both accept hexadecimal color values.
```javascript
@@ -19,9 +18,7 @@ viewer.textSearchColorSettings.searchColor = "#FF0000";
```
-This will set the text search color to red. You can use any valid hexadecimal color code to set the text search color to the desired color.
-
-You can also use the **searchHighlightColor** property of the searchModule object to change the highlight color of the search results. This property also accepts a string value in hexadecimal format.
+The above sets the match color to red. Use any valid hex color.
```javascript
@@ -29,12 +26,12 @@ viewer.textSearchColorSettings.searchHighlightColor = "#0000FF";
```
-This will set the highlight color of the search results to blue.
+The above sets the active result highlight to blue.
-* [**searchColor**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/textSearchColorSettings/#searchcolor)
-* [**searchHighlightColor**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/textSearchColorSettings/#searchhighlightcolor)
+- [searchColor](https://ej2.syncfusion.com/documentation/api/pdfviewer/textSearchColorSettings/#searchcolor)
+- [searchHighlightColor](https://ej2.syncfusion.com/documentation/api/pdfviewer/textSearchColorSettings/#searchhighlightcolor)
-Here is an example of how you can use the searchHighlightColor property and searchColor property:
+Example: Buttons to control search flow
```
@@ -67,4 +64,4 @@ document.getElementById("searchCancel").addEventListener("click", () => {
```
-Find the sample [how to customize the text search color](https://stackblitz.com/edit/js-q6nquw?file=index.js)
\ No newline at end of file
+Sample: [How to customize the text search color](https://stackblitz.com/edit/js-q6nquw?file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/delete-annotations.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/delete-annotations.md
index b7ad3091c..840b0c443 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/delete-annotations.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/delete-annotations.md
@@ -1,23 +1,22 @@
---
layout: post
-title: Delete annotations in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Delete annotations in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Delete an annotation in JavaScript PDF Viewer | Syncfusion
+description: Learn how to delete a specific annotation in the JavaScript PDF Viewer using the deleteAnnotationById method.
platform: document-processing
-control: Delete annotations
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Delete annotations in Javascript Pdfviewer control
+# Delete an annotation in PDF Viewer
-The PDF Viewer library allows you to delete a specific annotation from a PDF document. Deleting a specific annotation can be done using the **deleteAnnotationById()** method. This method is used to delete a specific annotation using its id.
+Use the `deleteAnnotationById()` method to remove a specific annotation from a PDF document by its id.
-The following steps are used to delete a specific annotation from PDF Document.
+### Steps to delete a specific annotation
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create simple PDF Viewer sample.
+**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
-**Step 2:** Use the following code snippet to delete a specific annotation using `deleteAnnotationById()` method.
+**Step 2:** Use the following code to delete a specific annotation using `deleteAnnotationById()`.
```
@@ -32,4 +31,4 @@ document.getElementById('deleteAnnotationbyId').addEventListener('click', () =>
});
```
-Find the sample [how to delete a specific annotation using deleteAnnotationById](https://stackblitz.com/edit/5ygaeq?file=index.js)
\ No newline at end of file
+Sample: [How to delete a specific annotation using deleteAnnotationById](https://stackblitz.com/edit/5ygaeq?file=index.js)
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/disable-context-menu-option.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/disable-context-menu-option.md
index 5df3d0ce5..18cc3f395 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/disable-context-menu-option.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/disable-context-menu-option.md
@@ -1,19 +1,18 @@
---
layout: post
-title: Disable context menu option in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Disable context menu option in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Disable the context menu in JavaScript PDF Viewer | Syncfusion
+description: Learn how to disable the context menu in the JavaScript PDF Viewer using the ContextMenuOption property.
platform: document-processing
-control: Disable context menu option
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Disable context menu option in Javascript Pdfviewer control
+# Disable the context menu in JavaScript PDF Viewer
-To disable the context menu in the Syncfusion PDF viewer control, you can use the [**ContextMenuOption**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#contextmenuoption) property as `'None'` to hide all context menu options. Default value of the **ContextMenuOption** is `'RightClick'`.
+Set [ContextMenuOption](https://ej2.syncfusion.com/documentation/api/pdfviewer/#contextmenuoption) to `None` to hide all context menu options. The default value is `RightClick`.
-Here is an example of how you can use the **ContextMenuOption** to disable context menu in the PDF Viewer:
+Example: Disable context menu
```
@@ -30,6 +29,6 @@ document.getElementById('disable').addEventListener('click', ()=> {
```
-This will hide the context menu and prevent the user from right-clicking on the PDF viewer.
+This hides the context menu and prevents right-click interactions in the viewer.
-Find the sample [how to disable context menu](https://stackblitz.com/edit/jlphem-uicunx?devtoolsheight=33&file=index.js)
\ No newline at end of file
+Sample: [How to disable the context menu](https://stackblitz.com/edit/jlphem-uicunx?devtoolsheight=33&file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/disable-tile-renderings.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/disable-tile-renderings.md
index 1b5ebba2f..0d7bfcc88 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/disable-tile-renderings.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/disable-tile-renderings.md
@@ -1,23 +1,20 @@
---
layout: post
-title: Disable tile renderings in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Disable tile renderings in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Disable tile rendering in JavaScript PDF Viewer | Syncfusion
+description: Learn how to disable tile rendering in the JavaScript PDF Viewer using enableTileRendering to adjust performance behavior for different document sizes.
platform: document-processing
-control: Disable tile renderings
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Disable tile renderings in Javascript Pdfviewer control
+# Disable tile rendering in JavaScript PDF Viewer
-To disable the tile rendering feature in the Syncfusion PDF viewer control, you can use the **enableTileRendering** property. This property allows you to enable or disable the tile rendering feature, which is used to improve the performance of the PDF viewer when displaying large documents.
+Use the `enableTileRendering` property to enable or disable tile rendering, which affects performance based on document size.
-To disable the tile rendering feature, you can set the **enableTileRendering** property to `false`.
+Set `enableTileRendering` to `false` to disable tile rendering. It is enabled by default and typically benefits large documents.
-By default, the tile rendering feature is enabled in the PDF viewer. Disabling it may improve the performance of the PDF viewer when displaying small documents, but it may also reduce the performance when displaying large documents.
-
-Here is an example of how you can use the **enableTileRendering** property:
+Example: Disable tile rendering
```
@@ -34,4 +31,4 @@ document.getElementById('disable').addEventListener('click', () => {
```
-Find the sample [how to disable the tile rendering](https://stackblitz.com/edit/7fefpj-n7pyna?file=index.js)
\ No newline at end of file
+Sample: [How to disable tile rendering](https://stackblitz.com/edit/7fefpj-n7pyna?file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/display-custom-tool-tip-for-annotations.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/display-custom-tool-tip-for-annotations.md
index 600f450b1..c861ab844 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/display-custom-tool-tip-for-annotations.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/display-custom-tool-tip-for-annotations.md
@@ -1,19 +1,18 @@
---
layout: post
-title: Display custom tool tip for annotations in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Display custom tool tip for annotations in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Display a custom tooltip for annotations in JavaScript PDF Viewer | Syncfusion
+description: Learn how to display a custom tooltip for annotations in the JavaScript PDF Viewer using the annotationMouseover and annotationMouseLeave events.
platform: document-processing
-control: Display custom tool tip for annotations
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Display custom tool tip for annotations in Javascript Pdfviewer control
+# Display a custom tooltip for annotations in JavaScript PDF Viewer
-To display a custom tooltip for annotations using the mouseover event in the Syncfusion PDF Viewer, you can use the [**annotationMouseOver**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#annotationmouseover) and **annotationMouseLeave** events .
+Display custom tooltips for annotations by handling the [annotationMouseover](https://ej2.syncfusion.com/documentation/api/pdfviewer/#annotationmouseover) and annotationMouseLeave events.
-Here is an example that demonstrates how to display a custom tooltip for annotations using the mouseover event in the Syncfusion PDF Viewer:
+Example: Show a tooltip on mouse over
```javascript
@@ -36,4 +35,4 @@ viewer.annotationMouseLeave = function(args) {
```
-Find the Sample [how to display custom tooltip for annotations using MouseOver event](https://stackblitz.com/edit/ztmvjx-byzwvq?file=index.js)
\ No newline at end of file
+Sample: [How to display a custom tooltip for annotations using mouseover](https://stackblitz.com/edit/ztmvjx-byzwvq?file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/download-document-on-window-closing.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/download-document-on-window-closing.md
index 4b5e37337..2176de2f1 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/download-document-on-window-closing.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/download-document-on-window-closing.md
@@ -1,21 +1,20 @@
---
layout: post
-title: Download document on window closing in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Download document on window closing in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Download document on window closing in JavaScript PDF Viewer control | Syncfusion
+description: Learn how to download a PDF document when the browser window closes or refreshes in the Syncfusion JavaScript PDF Viewer control by handling the onbeforeunload event.
platform: document-processing
-control: Download document on window closing
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Download document on window closing in Javascript Pdfviewer control
+# Download document on window closing in JavaScript PDF Viewer
-The PDF Viewer library allows you to download a PDF document rendered in the viewer while refreshing the window or clicking the close window using the [onbeforeunload](https://ej2.syncfusion.com/documentation/api/pdfviewer/#unload) event.
+The JavaScript PDF Viewer can automatically download the loaded PDF document when the browser window is refreshed or closed by handling the [onbeforeunload](https://ej2.syncfusion.com/documentation/api/pdfviewer/#unload) event.
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
+**Step 1:** Configure a working sample by following the instructions in [Getting started with the JavaScript PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/).
-**Step 2:** Add the following code sample to download a PDF document while refreshing or closing the window.
+**Step 2:** Add the following script to prompt the user when the window closes or refreshes and trigger the document download.
```ts
@@ -33,4 +32,4 @@ window.onbeforeunload = function(e){
```
-[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/Download/Download%20the%20pdf%20document%20before%20closing%20window%20or%20refresh)
\ No newline at end of file
+[View the sample on GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/Download/Download%20the%20pdf%20document%20before%20closing%20window%20or%20refresh)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/download-start-event-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/download-start-event-js.md
index 8e3816e90..432e2d95a 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/download-start-event-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/download-start-event-js.md
@@ -1,21 +1,16 @@
---
layout: post
-title: Controlling File Downloads in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Controlling File Downloads in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Control file downloads in JavaScript PDF Viewer | Syncfusion
+description: Learn how to intercept and control file downloads in the JavaScript PDF Viewer using the downloadStart event.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Controlling File Downloads in Syncfusion PDF Viewer
+# Control file downloads in PDF Viewer
-In the Syncfusion PDF Viewer, we've introduced a new feature that enables you to manage file downloads more effectively. This feature allows you to intercept and potentially skip the download process of a PDF document, providing enhanced control over user interactions within your application.
-
-### Using the downloadStart Event
-
-The key to this functionality lies in the downloadStart event, which offers a mechanism to intercept the initiation of the download process. Within the event handler, you can set the cancel argument to true to programmatically prevent the download action from proceeding.
+Use the downloadStart event to intercept the start of a download and optionally cancel it. In the event handler, set `args.cancel = true` to prevent the download.
```js
pdfviewer.downloadStart = args => {
@@ -24,8 +19,8 @@ pdfviewer.downloadStart = args => {
};
```
-By default, the cancel argument is set to `false`, indicating that the download action will proceed unless explicitly canceled by your custom logic.
+By default, `args.cancel` is `false`, so the download proceeds unless explicitly canceled.
-### Enhanced Flexibility
+### Flexibility
-By leveraging the [downloadStart](https://ej2.syncfusion.com/documentation/api/pdfviewer/#downloadstart) event and its cancel argument, you gain the ability to implement custom logic to control and potentially prevent download actions based on your application's specific requirements. This enhancement provides greater flexibility in managing user interactions with PDF documents, empowering you to tailor the experience according to your needs.
\ No newline at end of file
+Leverage the [downloadStart](https://ej2.syncfusion.com/documentation/api/pdfviewer/#downloadstart) event to apply custom rules for allowing or preventing downloads based on application needs.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/enable-local-storage-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/enable-local-storage-js.md
index 2071f1a1c..59e398818 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/enable-local-storage-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/enable-local-storage-js.md
@@ -1,26 +1,25 @@
---
layout: post
-title: Managing Local Storage in Javascript Pdfviewer control | Syncfusion
-description: Learn how to manage local storage in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Manage local storage in JavaScript PDF Viewer | Syncfusion
+description: Learn how to control session-specific data storage in the JavaScript PDF Viewer using the enableLocalStorage property.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Managing Local Storage in Syncfusion PDF Viewer
+# Manage local storage in PDF Viewer
-The Syncfusion PDF Viewer provides the `enableLocalStorage` property, which allows you to control how session-specific data is stored. You can choose to store this data in an internal collection or rely on the default session storage.
+Use the `enableLocalStorage` property to control whether session-specific data is stored in session storage (default) or an internal in-memory collection.
-### Using the enableLocalStorage Property
+### Use enableLocalStorage
-Set the `enableLocalStorage` property to manage whether the PDF Viewer uses session storage (default) or an internal collection. When set to `true`, session-specific data is kept in memory. Otherwise, session storage is used.
+Set `enableLocalStorage` to manage storage behavior. When `true`, data is kept in memory; otherwise, session storage is used.
```js
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl: "https://cdn.syncfusion.com/ej2/28.1.33/dist/ej2-pdfviewer-lib",
+ resourceUrl: "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -29,14 +28,10 @@ ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearc
pdfviewer.appendTo('#PdfViewer');
```
-### Impact and Considerations
+### Considerations
-- **Increased Memory Usage**: Setting `enableLocalStorage` to `true` can increase memory usage, particularly with larger documents or those containing many interactive elements, such as form fields and annotations.
-- **Avoiding Memory Leaks**: It is crucial to properly dispose of the PDF Viewer instance when it's no longer needed to prevent memory leaks, especially when using in-memory storage.
-- **Default Behavior**: By default, this property is set to `false`, meaning the session storage mechanism is utilized unless explicitly changed.
+- Memory usage can increase when using in-memory storage with large documents or many interactive elements.
+- Dispose of the PDF Viewer instance when no longer needed to avoid memory leaks.
+- Default: `enableLocalStorage` is `false`, so session storage is used unless changed.
-### Enhanced Control
-
-Leveraging the `enableLocalStorage` property provides greater flexibility in managing how data is stored during a session, allowing you to optimize performance and storage based on your application’s specific requirements.
-
-[View Sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
+[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/enable-resize-text.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/enable-resize-text.md
index 912e6e0a0..461660a24 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/enable-resize-text.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/enable-resize-text.md
@@ -1,19 +1,18 @@
---
layout: post
-title: Enable resize text in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Enable resize text in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Enable resize for text markup in JavaScript PDF Viewer | Syncfusion
+description: Learn how to enable the text markup resizer in the JavaScript PDF Viewer using the enableTextMarkupResizer property.
platform: document-processing
-control: Enable resize text
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Enable resize text in Javascript Pdfviewer control
+# Enable resize for text markup annotations
-To enable the resizer for the text markup annotation in Syncfusion PDF viewer, you can use the [**enableTextMarkupResizer**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#enabletextmarkupresizer) property. Default value of the property is false.
+Enable the resizer for text markup annotations using [enableTextMarkupResizer](https://ej2.syncfusion.com/documentation/api/pdfviewer/#enabletextmarkupresizer). The default value is `false`.
-Here is an example of how you can enable the resizer for the text markup annotation:
+Example: Enable resizer
```javascript
@@ -22,4 +21,4 @@ viewer.enableTextMarkupResizer = true;
```
-Find the sample [how to enable the resizer for the Text Markup annotation](https://stackblitz.com/edit/qzf6bk-xsk9pf?devtoolsheight=33&file=index.js)
+Sample: [Enable the resizer for text markup annotations](https://stackblitz.com/edit/qzf6bk-xsk9pf?devtoolsheight=33&file=index.js)
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/enable-text-selection-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/enable-text-selection-js.md
index 4448c7d48..ce13d533a 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/enable-text-selection-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/enable-text-selection-js.md
@@ -1,26 +1,25 @@
---
layout: post
-title: Enable or Disable Text Selection in Javascript Pdfviewer control | Syncfusion
-description: Learn how to enable text selection in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Enable or disable text selection in JavaScript PDF Viewer | Syncfusion
+description: Learn how to enable or disable text selection in the JavaScript PDF Viewer using the enableTextSelection property.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Enable or Disable Text Selection in Syncfusion PDF Viewer
+# Enable or disable text selection in PDF Viewer
-The Syncfusion PDF Viewer provides the `enableTextSelection` property, which allows you to control whether users can select text within the displayed PDF document. This feature can be toggled programmatically during runtime.
+Use the `enableTextSelection` property to control whether users can select text in the displayed PDF. This setting can be configured at initialization and toggled at runtime.
-## Configure Text Selection on Initialization
+## Configure on initialization
-You can set the initial text selection behavior when initializing the PDF Viewer control by configuring the `enableTextSelection` property.
+Set initial behavior when instantiating the PDF Viewer.
```js
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl: "https://cdn.syncfusion.com/ej2/30.1.37/dist/ej2-pdfviewer-lib",
+ resourceUrl: "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
enableTextSelection: false, // Disable text selection initially
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
@@ -28,9 +27,9 @@ ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearc
pdfviewer.appendTo('#PdfViewer');
```
-## Toggle Text Selection Dynamically
+## Toggle dynamically
-You can change the text selection behavior at runtime using buttons, menu options, or other UI elements:
+Change the behavior at runtime using buttons or other UI.
```html
@@ -50,14 +49,14 @@ document.getElementById('disableTextSelection').addEventListener('click', functi
});
```
-## Use Cases and Considerations
+## Use cases and considerations
-- **Document Protection**: Disabling text selection helps prevent unauthorized copying of sensitive content.
-- **Read-only Documents**: In scenarios where documents are meant for viewing only, disabling text selection can provide a cleaner user experience.
-- **Interactive Applications**: Toggle text selection based on user roles or document states in complex applications.
+- Document protection: Disable text selection to help prevent copying sensitive content.
+- Read-only documents: Provide a cleaner viewing experience by preventing selection.
+- Interactive apps: Toggle selection based on user roles or document states.
-## Default Behavior
+## Default behavior
-By default, text selection is enabled in the PDF Viewer. Set the `enableTextSelection` property to `false` explicitly if you want to disable this functionality.
+Text selection is enabled by default. Set `enableTextSelection` to `false` to disable it.
-[View Sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
+[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/export-as-image-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/export-as-image-js.md
index 499eaeebb..98750f06e 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/export-as-image-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/export-as-image-js.md
@@ -1,23 +1,22 @@
---
layout: post
-title: Export As Image in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Export As Image in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Export pages as images in JavaScript PDF Viewer | Syncfusion
+description: Learn how to export pages as Base64-encoded images in the JavaScript PDF Viewer using exportAsImage and exportAsImages.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Export As Image Javascript Pdfviewer control
+# Export pages as images in JavaScript PDF Viewer
-The PDF Viewer library allows you to export specified pages as a Base64-encoded image string using the **exportAsImage()** method and exporting a range of pages as Base64-encoded image strings using the **exportAsImages()** method.
+Export a single page as a Base64-encoded image using `exportAsImage()` or export a range of pages using `exportAsImages()`.
-The following steps are used to exportAsImage.
+### Steps to export pages as images
**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
-**Step 2:** The following code snippet to implement the functionality for exporting a specified page as a Base64-encoded image string or exporting a range of pages as Base64-encoded image strings.
+**Step 2:** Use the following code to export a specified page as a Base64-encoded image or a range of pages as Base64-encoded images.
```
@@ -38,8 +37,7 @@ document.getElementById('exportAsImage').addEventListener('click', () => {
```
-Similarly, to code snippet for exports the specified page as a Base64-encoded image string, allowing for custom image size:
-
+Export a specified page as a Base64-encoded image with a custom size:
```
@@ -60,8 +58,7 @@ document.getElementById('exportAsImageWithSize').addEventListener('click', () =>
});
```
-Similarly, to code snippet for exports the range of pages as Base64-encoded image strings:
-
+Export a range of pages as Base64-encoded image strings:
```
@@ -82,8 +79,7 @@ document.getElementById('exportAsImages').addEventListener('click', () => {
```
-Similarly, to code snippet for exports the range of pages as Base64-encoded image strings, allowing for custom image size:
-
+Export a range of pages as Base64-encoded images with a custom size:
```
@@ -105,4 +101,4 @@ document.getElementById('exportAsImagesWithSize').addEventListener('click', () =
```
-By following these steps, you can successfully integrate and use the export as image API in the EJ2 PDF Viewer.
\ No newline at end of file
+These APIs enable exporting viewer pages as images for further processing or download.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/extract-text-completed-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/extract-text-completed-js.md
index fc6363d08..f84f36413 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/extract-text-completed-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/extract-text-completed-js.md
@@ -1,19 +1,17 @@
---
layout: post
-title: extractTextCompleted Event in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about extractTextCompleted Event in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: extractTextCompleted event in JavaScript PDF Viewer | Syncfusion
+description: Learn how to use the extractTextCompleted event and isExtractText property in the Syncfusion JavaScript PDF Viewer to extract text and bounds.
platform: document-processing
-control: Extract text
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
-domainurl: ##DomainURL##
---
-# Extract text in Javascript Pdfviewer control using extractTextCompleted event
+# Use extractTextCompleted to extract text in JavaScript PDF Viewer
-To extract text in Syncfusion PDF viewer, you can use the [**isExtractText**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#isextracttext) property and [**extractTextCompleted**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#extracttextcompleted) event.This allows you to extract the text from a page along with the bounds.
+Use the [isExtractText](https://ej2.syncfusion.com/documentation/api/pdfviewer/#isextracttext) property and the [extractTextCompleted](https://ej2.syncfusion.com/documentation/api/pdfviewer/#extracttextcompleted) event to extract page text along with bounds.
-Here is an example of how you can use the **isExtractText** property and **extractTextCompleted** event:
+The following example shows how to enable text extraction and handle the completion event:
```javascript
@@ -32,4 +30,4 @@ viewer.extractTextCompleted = args => {
```
-Find the sample [how to extract Text](https://stackblitz.com/edit/kzd4jd-dcser9?file=index.js)
\ No newline at end of file
+Find the sample: [How to extract text](https://stackblitz.com/edit/kzd4jd-dcser9?file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/extract-text-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/extract-text-js.md
index 739ff2c42..61c903bef 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/extract-text-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/extract-text-js.md
@@ -1,40 +1,35 @@
---
layout: post
-title: Extract Text in Syncfusion Javascript Pdfviewer Control | Syncfusion
-description: Learn about the Extract Text in Syncfusion #Platform_Name## Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Use extractText in JavaScript PDF Viewer | Syncfusion
+description: Learn how to use the extractText method in the Syncfusion JavaScript PDF Viewer to extract text and bounds from one or more pages.
platform: document-processing
-control: Extract Text
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
-domainurl: ##DomainURL##
---
-# Extract Text Method in Syncfusion PdfViewer Control
+# Extract text using extractText in JavaScript PDF Viewer
-The `extractText` method of the Syncfusion PdfViewer control enables text extraction from one or more pages in a PDF document. This method is useful for retrieving the text content along with its associated data, such as the bounds of each text element.
+The `extractText` method extracts text from one or more pages and can return plain text or text with bounds for each element.
-### extractText Method
-The extractText method retrieves text data from the specified page(s) of a PDF document. It can extract text from one page, a range of pages, or even provide detailed text data, depending on the options specified.
+### extractText method
+Retrieves text data from one page or a range of pages based on the specified options.
#### Parameters:
**startIndex:** The starting page index for text extraction (0-based index).
-**endIndex Or isOptions:** This can either be the ending page index for the text extraction (for extracting from multiple pages) or an option specifying text extraction criteria for a single page.
+**endIndex or isOptions:** Either the ending page index (for multiple pages) or an option specifying extraction criteria for a single page.
-**options (optional):** Specifies additional options, such as extracting plain text `TextOnly` or more detailed text data `TextAndBounds`. You can specify various options for text extraction. These options determine whether you want to extract plain text, text with bounds, or detailed text data.
+**options (optional):** Additional options, such as `TextOnly` for plain text or `TextAndBounds` for detailed text data with bounds.
-***TextOnly:*** Extracts only the plain text content without bounds or additional information.
-
-***TextAndBounds:*** Extracts text content along with its bounds (coordinates) within the PDF.
+- TextOnly: Extracts only plain text without bounds.
+- TextAndBounds: Extracts text with bounds (coordinates).
#### Returns:
-The method returns a Promise that resolves to an object containing two properties:
-
-**textData:** An array of TextDataSettingsModel objects, each representing the details of the extracted text (including bounds, page text, etc.).
+Returns a Promise with:
+- textData: An array of TextDataSettingsModel with details including bounds and page text.
+- pageText: A concatenated string of plain text from the specified page(s).
-**pageText:** A concatenated string of plain text extracted from the specified page(s).
-
-### Usage of extractText in Syncfusion PdfViewer Control
+### Usage of extractText in Syncfusion PDF Viewer Control
Here is an example that demonstrates how to use the extractText method along with event handling:
```html
@@ -46,7 +41,7 @@ Here is an example that demonstrates how to use the extractText method along wit
var viewer = new ej.pdfviewer.PdfViewer({
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl: "https://cdn.syncfusion.com/ej2/29.1.33/dist/ej2-pdfviewer-lib",
+ resourceUrl: "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
viewer.appendTo("#pdfViewer");
@@ -67,9 +62,8 @@ document.getElementById('extractTexts').addEventListener('click', function () {
});
```
-#### Explanation:
-**Single Page Extraction:** The first `extractText` call extracts text from page 1 (`startIndex = 1`), using the 'TextOnly' option for plain text extraction.
-
-**Multiple Pages Extraction:** The second extractText call extracts text from pages 0 through 2 (`startIndex = 0, endIndex = 2`), using the `TextOnly` option for plain text extraction.
+#### Explanation
+- Single page: Extracts text from page 1 (`startIndex = 1`) using `TextOnly`.
+- Multiple pages: Extracts text from pages 0–2 (`startIndex = 0, endIndex = 2`) using `TextOnly`.
-[View Sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
+[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/extract-text-option-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/extract-text-option-js.md
index 808458d77..5a170fc4f 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/extract-text-option-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/extract-text-option-js.md
@@ -1,18 +1,15 @@
---
layout: post
-title: Extract Text Option in Syncfusion Javascript Pdfviewer Control | Syncfusion
-description: Learn about the `extractTextOption` in Syncfusion #Platform_Name## Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Configure extractTextOption in JavaScript PDF Viewer | Syncfusion
+description: Learn how to use the extractTextOption property in the Syncfusion JavaScript PDF Viewer to control text extraction and memory usage.
platform: document-processing
-control: Extract Text Option
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
-domainurl: ##DomainURL##
---
+# Configure extractTextOption in JavaScript PDF Viewer
-# Extract Text Option in Syncfusion Javascript Pdfviewer Control
-
-The `extractTextOption` property in the Syncfusion PdfViewer control allows you to optimize memory usage by controlling the level of text extraction. This setting influences the data returned in the `extractTextCompleted` event. You can select one of the following options to determine the kind of text extraction and layout information to retrieve.
+The `extractTextOption` property controls how text is extracted and optimizes memory usage. It also affects the data returned in the `extractTextCompleted` event. Choose one of the following options to determine the text and layout data to retrieve.
### Available Options:
@@ -30,7 +27,7 @@ The following example demonstrates how to configure the `extractTextOption` prop
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl: "https://cdn.syncfusion.com/ej2/29.1.33/dist/ej2-pdfviewer-lib",
+ resourceUrl: "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -48,6 +45,6 @@ ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearc
**extractTextOption.None:** This option does not extract or return any text or layout information. It is used to optimize memory usage when no text extraction is necessary. This setting is only relevant for the `extractTextCompleted` event and cannot be used with the `ExtractText` method.
-N> Text Search: When using the ` extractTextOption.None` and `extractTextOption.TextOnly` option, the findText method will not work. Instead, you should use the findTextAsync method to perform text searches asynchronously.
+N> Text search: When using the `extractTextOption.TextOnly` or `extractTextOption.None` options, the `findText` method is unavailable. Use the `findTextAsync` method to perform text searches asynchronously.
-[View Sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
+[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/find-text-async-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/find-text-async-js.md
index dedafedd6..da5fc340a 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/find-text-async-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/find-text-async-js.md
@@ -1,22 +1,20 @@
---
layout: post
-title: Find Text Async in Syncfusion Javascript Pdfviewer Control | Syncfusion
-description: Learn about the `findTextAsync` in Syncfusion #Platform_Name## Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Use findTextAsync in JavaScript PDF Viewer | Syncfusion
+description: Learn how to search text asynchronously with findTextAsync in the Syncfusion JavaScript PDF Viewer and retrieve match bounds.
platform: document-processing
-control: Find Text Async
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
+# Find text with findTextAsync in JavaScript PDF Viewer
-# Find Text using findTextAsync Method in Syncfusion Javascript PdfViewer Control
+The `findTextAsync` method searches for a string or array of strings asynchronously and returns bounding rectangles for each match. Use it to locate text positions across the document or on a specific page.
-The findTextAsync method in the Syncfusion PdfViewer control allows you to search for specific text or an array of strings asynchronously within a PDF document. The method returns the bounding rectangles for each occurrence of the search term, allowing you to find and work with text positions in the document.
+Here is an example of how to use `findTextAsync`:
-Here is an example of how you can use the **findTextAsync** method:
-
-Example 1: Search for a single string ('pdf') with a case-insensitive search across all pages
+Example 1: Search for a single string ('pdf') case-insensitively across all pages
```html
@@ -25,7 +23,7 @@ Example 1: Search for a single string ('pdf') with a case-insensitive search acr
```js
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl: "https://cdn.syncfusion.com/ej2/29.1.33/dist/ej2-pdfviewer-lib",
+ resourceUrl: "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -37,7 +35,7 @@ document.getElementById('findText').addEventListener('click', function () {
});
});
```
-Example 2: Search for multiple strings (['pdf', 'the']) with a case-insensitive search across all pages
+Example 2: Search for multiple strings (['pdf', 'the']) case-insensitively across all pages
```js
document.getElementById('findTexts').addEventListener('click', function () {
pdfviewer.textSearchModule.findTextAsync(['pdf', 'the'], false).then(res => {
@@ -46,29 +44,19 @@ document.getElementById('findTexts').addEventListener('click', function () {
});
```
-### Description:
+### Description
The `findTextAsync` method is designed for performing an asynchronous text search within a PDF document. You can use it to search for a single string or multiple strings, with the ability to control case sensitivity. By default, the search is applied to all pages of the document. However, you can adjust this behavior by specifying the page number (pageIndex), which allows you to search only a specific page if needed.
-### Parameters:
-
-**text (string | string[]):**
-
-The text or an array of texts you want to search for in the document.
-
-**matchCase (boolean):**
+### Parameters
-Indicates whether the search should be case-sensitive.
-When set to true, the search will match the exact case.
-When set to false, the search will ignore case differences.
+**text (string | string[]):** The text or array of texts to search for in the document.
-**pageIndex (optional, number):**
+**matchCase (boolean):** Whether the search is case-sensitive. `true` matches exact case; `false` ignores case.
-Specifies the page number (zero-based index) to search within the document.
-If not provided, the search will be performed across all pages in the document.
-For example, passing 0 would search only the first page of the document.
+**pageIndex (optional, number):** Zero-based page index to search. If omitted, searches all pages.
-### Example Workflow:
+### Example workflow
**findTextAsync('pdf', false):**
This will search for the term "pdf" in a case-insensitive manner across all pages of the document.
@@ -82,4 +70,4 @@ This will search for the term "pdf" in a case-insensitive manner only on the fir
**findTextAsync(['pdf', 'the'], false, 1):**
This will search for the terms "pdf" and "the" in a case-insensitive manner only on the second page (page 1).
-[View Sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
+[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/focus-on-a-form-field-after-loading.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/focus-on-a-form-field-after-loading.md
index 4f0a97c6c..ba7fdeb62 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/focus-on-a-form-field-after-loading.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/focus-on-a-form-field-after-loading.md
@@ -1,23 +1,22 @@
---
layout: post
-title: Focus on a form field after loading in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Focus on a form field after loading in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Focus on a form field after loading in JavaScript PDF Viewer control | Syncfusion
+description: Learn how to set focus on form fields after loading a document in the Syncfusion JavaScript PDF Viewer control by calling the focusFormField API.
platform: document-processing
-control: Focus on a form field after loading
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Focus on a form field after loading in Javascript Pdfviewer control
+# Focus on a form field after loading in JavaScript PDF Viewer
-The PDF Viewer library allows you to focus to the respective form field using the [`focusFormField()`](https://ej2.syncfusion.com/documentation/api/pdfviewer/#focusformfield) API.
+The JavaScript PDF Viewer library enables setting focus on a specific form field by using the [`focusFormField()`](https://ej2.syncfusion.com/documentation/api/pdfviewer/#focusformfield) API.
-The following steps are used to focus to the respective form field.
+Follow these steps to bring a form field into focus during document load and on demand.
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
+**Step 1:** Complete the configuration described in [Getting started with the JavaScript PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to build a working sample.
-**Step 2:** Use the following code sample to focus to the respective form field while loading as well as in a button click.
+**Step 2:** Add the following markup and code to focus the desired form field when the document loads or when a button is clicked.
```
@@ -38,4 +37,4 @@ viewer.documentLoad = (args) => {
};
```
-[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/Form%20Fields/Focusing%20the%20form%20fields%20while%20loading).
\ No newline at end of file
+[View the sample on GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/Form%20Fields/Focusing%20the%20form%20fields%20while%20loading).
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/get-base64-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/get-base64-js.md
index cfb132f54..6d701d67b 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/get-base64-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/get-base64-js.md
@@ -1,23 +1,22 @@
---
layout: post
-title: Retrieving Base64 Value in JavaScript PdfViewer | Syncfusion
-description: Learn how to retrieve the Base64 value of a loaded PDF document in the Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Get Base64 from loaded PDF in JavaScript PDF Viewer | Syncfusion
+description: Learn how to retrieve the Base64 value of a loaded PDF in the Syncfusion JavaScript PDF Viewer using saveAsBlob and FileReader.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Retrieving Base64 Value from a PDF in PDF Viewer
+# Get Base64 value from a loaded PDF
### Overview
-This guide demonstrates how to fetch the base64-encoded value of a PDF document loaded in the Syncfusion PDF Viewer using JavaScript. This is useful for sending the PDF as a base64 string or processing it in the front end.
+This guide shows how to get the base64-encoded value of a PDF loaded in the Syncfusion PDF Viewer using JavaScript. This is useful for sending the PDF as a base64 string or processing it on the client.
### How to Retrieve Base64 Value
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
+**Step 1:** Follow the steps in the [Get started with JavaScript ES5 PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started) guide to create a sample.
**Step 2:** Create a Button in Your HTML File
@@ -39,9 +38,9 @@ document.getElementById('getBase64').addEventListener('click', function() {
});
```
-**Step 4:** Retrieve Base64 of the Loaded Document
+**Step 4:** Retrieve Base64 of the loaded document
-Create a function that uses saveAsBlob, and convert the blob to a base64 string.
+Create a function that uses `saveAsBlob`, and convert the blob to a Base64 string.
```js
function base64ofloadedDocument() {
@@ -58,6 +57,6 @@ function base64ofloadedDocument() {
```
### Conclusion
-By implementing these steps, you can convert a PDF document loaded in the Syncfusion PDF Viewer to a base64 string on button click, facilitating the manipulation or transfer of PDF data as needed.
+By following these steps, a loaded PDF can be converted to a Base64 string on button click for transfer or processing.
[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/get-page-info-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/get-page-info-js.md
index 78a4e3592..008676e75 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/get-page-info-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/get-page-info-js.md
@@ -1,23 +1,22 @@
---
layout: post
-title: Get Page Info in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Get Page Info in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Get page info in JavaScript PDF Viewer | Syncfusion
+description: Learn how to retrieve page height, width, and rotation using getPageInfo in the Syncfusion JavaScript PDF Viewer.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Get Page Info Javascript Pdfviewer control
+# Get page info in JavaScript PDF Viewer
-The PDF Viewer library allows you to retrieves the information of a specified page in the viewer using the **getPageInfo()** method.This provides essential information such as the height, width and rotation.
+Use the **getPageInfo()** method to retrieve information for a specified page, including height, width, and rotation.
-The following steps are used to getPageInfo.
+The following steps show how to use `getPageInfo`.
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
+**Step 1:** Follow the steps in the [Get started with JavaScript ES5 PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) guide to create a sample.
-**Step 2:** The following code snippet to implement the functionality for retrieving height, width and rotation of a specified page in the viewer.
+**Step 2:** Use the following code to get the height, width, and rotation for a specified page.
```html
@@ -42,6 +41,6 @@ document.getElementById('getPageInfo').addEventListener('click', function() {
```
-By following these steps, you can successfully integrate and use the get page info API in the EJ2 PDF Viewer.
+By following these steps, the page info API can be integrated and used in the EJ2 PDF Viewer.
-[View Sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
+[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/highlight-underline-strikeout.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/highlight-underline-strikeout.md
index 25784306c..70d373129 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/highlight-underline-strikeout.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/highlight-underline-strikeout.md
@@ -1,21 +1,20 @@
---
layout: post
-title: Highlight underline strikeout in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Highlight underline strikeout in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Highlight, underline, and strikeout text in JavaScript PDF Viewer | Syncfusion
+description: Learn how to programmatically highlight, underline, and strikeout text in the Syncfusion JavaScript PDF Viewer using setAnnotationMode.
platform: document-processing
-control: Highlight underline strikeout
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Highlight underline strikeout in Javascript Pdfviewer control
+# Highlight, underline, and strikeout text in JavaScript PDF Viewer
-The PDF Viewer library allows you to highlight, underline and strikeout text in the loaded PDF document programmatically using the [**setAnnotationMode()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation/#setannotationmode) method.
+Use the [setAnnotationMode()](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation/#setannotationmode) method to programmatically highlight, underline, and strike through text in a loaded PDF document.
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create simple PDF Viewer sample.
+**Step 1:** Follow the steps in the [Get started with JavaScript ES5 PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) guide to create a sample.
-**Step 2:** Add the following code snippet to highlight, underline, and strikeout text in the loaded document with button click events.
+**Step 2:** Add the following code snippet to highlight, underline, and strikeout text with button click events.
```javascript
@@ -34,4 +33,4 @@ The PDF Viewer library allows you to highlight, underline and strikeout text in
```
-Find the Sample [how to highlight, underline and strikeout text programmatically](https://stackblitz.com/edit/bf3k6y?devtoolsheight=33&file=index.js)
\ No newline at end of file
+Find the sample: [Highlight, underline, and strikeout text programmatically](https://stackblitz.com/edit/bf3k6y?devtoolsheight=33&file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/identify-added-annotation.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/identify-added-annotation.md
index 0021b79d1..a3c078136 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/identify-added-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/identify-added-annotation.md
@@ -1,21 +1,20 @@
---
layout: post
-title: Identify added annotation in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Identify added annotation in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Identify added annotation mode in JavaScript PDF Viewer | Syncfusion
+description: Learn how to determine whether an added annotation was drawn, imported, or existing using the annotationSelect event in the JavaScript PDF Viewer.
platform: document-processing
-control: Identify added annotation
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Identify added annotation in Javascript Pdfviewer control
+# Identify added annotation mode in JavaScript PDF Viewer
-The PDF Viewer library allows you to identify whether the added annotations in PDF document is UI drawn, imported or existing annotation. Annotation mode can be identified using the [**annotationAddMode**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#annotationadd) property of **annotationSelect**9(https://ej2.syncfusion.com/documentation/api/pdfviewer/#annotationselect) event.
+Determine whether an added annotation was UI-drawn, imported, or existing using the [annotationAddMode](https://ej2.syncfusion.com/documentation/api/pdfviewer/#annotationadd) property of the [annotationSelect](https://ej2.syncfusion.com/documentation/api/pdfviewer/#annotationselect) event.
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create simple PDF Viewer sample.
+**Step 1:** Follow the steps in the [Get started with JavaScript ES5 PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) guide to create a sample.
-**Step 2:** The following code snippet explains how to identify added annotation mode.
+**Step 2:** Use the following code to identify the added annotation mode.
```javascript
@@ -25,4 +24,4 @@ console.log(args.annotationAddMode);
```
-Find the Sample [how to identify added annotation mode](https://stackblitz.com/edit/xntzu8?devtoolsheight=33&file=index.js)
+Find the sample: [Identify added annotation mode](https://stackblitz.com/edit/xntzu8?devtoolsheight=33&file=index.js)
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/import-annotation.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/import-annotation.md
index dbcde76c7..e3f2711c6 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/import-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/import-annotation.md
@@ -1,23 +1,22 @@
---
layout: post
-title: Import annotation in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Import annotation in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Import annotations in JavaScript PDF Viewer | Syncfusion
+description: Learn how to import annotations in the Syncfusion JavaScript PDF Viewer using the importAnnotations method.
platform: document-processing
-control: Import annotation
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Import annotation in Javascript Pdfviewer control
+# Import annotations in JavaScript PDF Viewer
-To import annotations into a Syncfusion PDF Viewer when loading a PDF document, you can use the [**importAnnotations()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#importannotation) method of the PDF Viewer. This method allows you to import annotations from a file or a string in the PDF Viewer.
+Use the [importAnnotations()](https://ej2.syncfusion.com/documentation/api/pdfviewer/#importannotation) method to import annotations from a file or a string when loading a PDF document.
-Here is an example of how you can use the [**importAnnotations()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#importannotation) method to import annotations when loading a PDF document:
+The following example shows how to import annotations during document load:
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create simple PDF Viewer sample.
+**Step 1:** Follow the steps in the [Getting started with JavaScript ES5 PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) guide to create a sample.
-**Step 2:** Add the following code snippet to import annotations on load PDF document.
+**Step 2:** Add the following code to import annotations when a PDF is loaded.
```javascript
@@ -115,9 +114,9 @@ viewer.importAnnotation({
```
-In this example, the PDF Viewer is first used to load the PDF document from a file. The **importAnnotations()** method is then used to import annotations from a string. The imported annotations will be added to the PDF Viewer and displayed along with the document.
+In this example, the PDF Viewer loads a document and then imports annotations from a string. The imported annotations are added to the viewer and displayed along with the document.
-Alternatively, we can import annotations from a file in JSON or XFDF format.
+Alternatively, annotations can be imported from a file in JSON or XFDF format.
```javascript
@@ -127,4 +126,4 @@ document.getElementById('import').addEventListener('click', function() {
```
-Find the sample [how to import annotations on loading a PDF Document](https://stackblitz.com/edit/eus1kk?file=index.js)
\ No newline at end of file
+Find the sample: [Import annotations on loading a PDF document](https://stackblitz.com/edit/eus1kk?file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/import-export-annotation-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/import-export-annotation-js.md
index 363894902..eb650984f 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/import-export-annotation-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/import-export-annotation-js.md
@@ -1,23 +1,22 @@
---
layout: post
-title: Import export annotation in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Import export annotation in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Import and export annotations in JavaScript PDF Viewer | Syncfusion
+description: Learn how to import and export annotations as objects, JSON, or XFDF in the Syncfusion JavaScript PDF Viewer.
platform: document-processing
-control: Import export annotation
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Import export annotation in Javascript Pdfviewer control
+# Import and export annotations in JavaScript PDF Viewer
-The PDF Viewer library allows you to import annotations from objects or streams instead of loading it as a file. To import such annotation objects, the PDF Viewer control must export the PDF annotations as objects using the [**ExportAnnotationsAsObject()**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#exportannotationsasobject) method. Only the annotation objects that are exported from the PDF Viewer can be imported.
+Import annotations from objects or streams instead of files. To import such objects, first export annotations as objects using the [exportAnnotationsAsObject()](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#exportannotationsasobject) method. Only objects exported from the PDF Viewer can be imported.
-The following steps are used to import and export annotations in various formats such as objects, JSON, and XFDF.
+Use the following steps to import and export annotations as objects, JSON, or XFDF.
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
+**Step 1:** Follow the steps provided in this [guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
-**Step 2:** Use the following code snippet to perform import and export annotation.
+**Step 2:** Use the following code to perform import and export operations.
```
@@ -53,4 +52,4 @@ document.getElementById('import').addEventListener('click', () => {
```
-[View Sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
+[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/load-documents.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/load-documents.md
index e85cc63b2..ddee5ea59 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/load-documents.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/load-documents.md
@@ -1,23 +1,22 @@
---
layout: post
-title: Load documents in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Load documents in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Load documents dynamically in JavaScript PDF Viewer | Syncfusion
+description: Learn how to load or switch PDF documents dynamically in the Syncfusion JavaScript PDF Viewer using the load method.
platform: document-processing
-control: Load documents
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Load documents in Javascript Pdfviewer control
+# Load documents dynamically in JavaScript PDF Viewer
-The PDF Viewer library allows to switch or load the PDF documents dynamically after the initial load operation. To achieve this, load the PDF document as a base64 string or file name in PDF Viewer control using the [**Load()**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#load) method dynamically.
+Load or switch PDF documents dynamically after the initial load. Use the [load](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#load) method to load a PDF by Base64 string or file name.
-The following steps are used to load the PDF document dynamically.
+The following steps show how to load a PDF dynamically.
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
+**Step 1:** Follow the steps in the [Get started with JavaScript ES5 PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) guide to create a sample.
-**Step 2:** Use the following code snippet to load PDF document using base64 string.
+**Step 2:** Use the following code to load a PDF using a Base64 string.
```
@@ -31,7 +30,7 @@ document.getElementById('load1').addEventListener('click', () => {
}
```
-**Step 3:** Use the following code snippet to load PDF document using document name.
+**Step 3:** Use the following code to load a PDF by document name.
```
@@ -45,4 +44,4 @@ document.getElementById('load2').addEventListener('click', () => {
```
-Find the sample, [how to load PDF documents dynamically](https://stackblitz.com/edit/w82pgd?devtoolsheight=33&file=index.js)
\ No newline at end of file
+Find the sample: [Load PDF documents dynamically](https://stackblitz.com/edit/w82pgd?devtoolsheight=33&file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/min-max-zoom-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/min-max-zoom-js.md
index 2d94a5c39..8e6f5d4f0 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/min-max-zoom-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/min-max-zoom-js.md
@@ -1,32 +1,31 @@
---
layout: post
-title: Minimum and Maximum Zoom in Javascript PDF Viewer control | Syncfusion
-description: Learn here all about Minimum and Maximum Zoom in Syncfusion Javascript PDF Viewer control of Syncfusion Essential JS 2 and more.
+title: Configure minZoom and maxZoom in JavaScript PDF Viewer | Syncfusion
+description: Learn how to configure minimum and maximum zoom levels using minZoom and maxZoom in the Syncfusion JavaScript PDF Viewer.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Minimum and Maximum Zoom Properties
+# Configure minZoom and maxZoom in the PDF Viewer
-The Syncfusion PDF Viewer provides the ability to control zoom levels for viewing PDF documents. The [minZoom](https://ej2.syncfusion.com/documentation/api/pdfviewer/#minzoom) and [maxZoom](https://ej2.syncfusion.com/documentation/api/pdfviewer/#maxzoom) properties enable developers to set the minimum and maximum zoom levels, ensuring a consistent and controlled viewing experience.
+Control zoom levels in the PDF Viewer using the [minZoom](https://ej2.syncfusion.com/documentation/api/pdfviewer/#minzoom) and [maxZoom](https://ej2.syncfusion.com/documentation/api/pdfviewer/#maxzoom) properties to ensure a consistent viewing experience.
### minZoom
-The [minZoom](https://ej2.syncfusion.com/documentation/api/pdfviewer/#minzoom) property specifies the minimum zoom percentage allowed in the PDF Viewer. This ensures that users cannot zoom out beyond a certain limit, which helps maintain readability and performance. Developers can set the `minZoom` property programmatically, defining the minimum zoom level based on the application's requirements. This is particularly useful for preventing users from zooming out too much, which could make the content difficult to read.
+Specifies the minimum zoom percentage allowed. Prevents zooming out beyond a set limit to maintain readability and performance.
### maxZoom
-The [maxZoom](https://ej2.syncfusion.com/documentation/api/pdfviewer/#maxzoom) property defines the maximum zoom percentage allowed in the PDF Viewer. By setting this property, developers can prevent users from zooming in too much, helping to avoid performance issues and maintain a smooth viewing experience. The `maxZoom` property can be set programmatically to control the upper limit of the zoom level. This is useful for applications where extremely high zoom levels might degrade performance or user experience.
+Defines the maximum zoom percentage allowed. Prevents excessive zooming that could affect performance and usability.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib",
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib",
maxZoom : 100,
minZoom : 10,
@@ -51,7 +50,7 @@ pdfviewer.appendTo('#PdfViewer');
{% endhighlight %}
{% endtabs %}
-#### Restrict Zoom Percentage on Mobile Devices
+#### Restrict zoom percentage on mobile devices
You can easily restrict the zoom percentage on mobile devices using the [minZoom](https://ej2.syncfusion.com/documentation/api/pdfviewer/#minzoom) and [maxZoom](https://ej2.syncfusion.com/documentation/api/pdfviewer/#maxzoom) properties. This feature allows you to set specific limits for zooming, ensuring smoother scrolling performance and efficient document loading on mobile devices. By controlling the zoom levels, you can provide a better user experience across different devices.
@@ -60,7 +59,7 @@ You can easily restrict the zoom percentage on mobile devices using the [minZoom
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib"
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib"
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -100,4 +99,4 @@ pdfviewer.documentLoad = (): void => {
{% endhighlight %}
{% endtabs %}
-By implementing this, you ensure that the maximum zoom percentage on mobile devices is limited to 200% and the minimum zoom percentage is set to 10%. This prevents performance issues that may arise from excessive zooming on mobile platforms.
\ No newline at end of file
+This limits maximum zoom to 200% and minimum zoom to 10% on mobile devices, helping prevent performance issues from excessive zooming.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/open-bookmark-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/open-bookmark-js.md
index 83951f7b7..5b38e5e87 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/open-bookmark-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/open-bookmark-js.md
@@ -1,21 +1,20 @@
---
layout: post
-title: Open Bookmark in Javascript PDF Viewer control | Syncfusion
-description: Learn here all about Open Bookmark in Syncfusion Javascript PDF Viewer control of Syncfusion Essential JS 2 and more.
+title: Open or close the Bookmark pane programmatically in JavaScript PDF Viewer | Syncfusion
+description: Learn how to open and close the Bookmark pane programmatically in the Syncfusion JavaScript PDF Viewer using openBookmarkPane and closeBookmarkPane.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Open and Close Bookmark pane programmatically
+# Open or close the Bookmark pane programmatically
-The PDF Viewer library allows you to open the Bookmark pane programmatically using the **openBookmarkPane()** method.
+Open the Bookmark pane programmatically using the `openBookmarkPane()` method.
The following steps are used to open the Bookmark.
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started) to create a simple PDF Viewer sample.
+**Step 1:** Follow the steps in the [Get started with JavaScript ES5 PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started) guide to create a sample.
**Step 2:** Insert the following code snippet to implement the functionality for opening the Bookmark pane:
@@ -30,7 +29,7 @@ document.getElementById('openBookmark').addEventListener('click', () => {
});
```
-Similarly, to close the Bookmark pane programmatically, employ the following code snippet:
+To close the Bookmark pane programmatically, use the following code:
```html
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/open-thumbnail-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/open-thumbnail-js.md
index 6ce50403d..85b6350b9 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/open-thumbnail-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/open-thumbnail-js.md
@@ -1,21 +1,20 @@
---
layout: post
-title: Open thumbnail js in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Open thumbnail js in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Open the thumbnail pane programmatically in JavaScript PDF Viewer | Syncfusion
+description: Learn how to open the thumbnail pane programmatically in the Syncfusion JavaScript PDF Viewer using openThumbnailPane.
platform: document-processing
-control: Open thumbnail js
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Open thumbnail js in Javascript Pdfviewer control
+# Open the thumbnail pane programmatically
-The PDF Viewer library allows you to open the thumbnail pane programmatically using the [**openThumbnailPane()**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/thumbnailView/#openthumbnailpane) method.
+Open the thumbnail pane programmatically using the [openThumbnailPane()](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/thumbnailView/#openthumbnailpane) method.
The following steps are used to open the thumbnail.
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
+**Step 1:** Follow the steps in the [Get started with JavaScript ES5 PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) guide to create a sample.
**Step 2:** Use the following code snippet to open thumbnail.
@@ -30,4 +29,4 @@ document.getElementById('openThumbnail').addEventListener('click', () => {
});
```
-Find the sample, [how to open the thumbnail pane programmatically](https://stackblitz.com/edit/ejvemx?file=index.js)
\ No newline at end of file
+Find the sample: [Open the thumbnail pane programmatically](https://stackblitz.com/edit/ejvemx?file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/overlapped-annotations.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/overlapped-annotations.md
index b1d04033f..3fcb75219 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/overlapped-annotations.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/overlapped-annotations.md
@@ -1,19 +1,18 @@
---
layout: post
-title: Overlapped annotations in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Overlapped annotations in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Get overlapped annotations on click in JavaScript PDF Viewer | Syncfusion
+description: Learn how to get overlapped annotations on click using the annotationSelect event in the Syncfusion JavaScript PDF Viewer.
platform: document-processing
-control: Overlapped annotations
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Overlapped annotations in Javascript Pdfviewer control
+# Get overlapped annotations on click in JavaScript PDF Viewer
-To get the overlapped annotations on a mouse click in a Syncfusion PDF Viewer, you can use the [**annotationCollection**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#annotationcollection) property of [**annotationSelect**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#annotationselect) event.This event is triggered when the user clicks on an annotation in the PDF document.
+Use the [annotationCollection](https://ej2.syncfusion.com/documentation/api/pdfviewer/#annotationcollection) property of the [annotationSelect](https://ej2.syncfusion.com/documentation/api/pdfviewer/#annotationselect) event to get overlapped annotations when the user clicks an annotation.
-Here is an example of how you can use the [**annotationSelect**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#annotationselect) event to get the overlapped annotations on a mouse click in a Syncfusion PDF Viewer:
+The following example shows how to access overlapped annotations on click:
```javascript
@@ -24,4 +23,4 @@ viewer.annotationSelect =(args) =>{
```
-Find the sample [how to get the overlapped annotations on mouse click](https://stackblitz.com/edit/a93cem-lprlap?devtoolsheight=33&file=index.js)
\ No newline at end of file
+Find the sample: [Get overlapped annotations on click](https://stackblitz.com/edit/a93cem-lprlap?devtoolsheight=33&file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/pagerenderstarted-pagerendercompleted-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/pagerenderstarted-pagerendercompleted-js.md
index d1a123603..903d7c1ac 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/pagerenderstarted-pagerendercompleted-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/pagerenderstarted-pagerendercompleted-js.md
@@ -1,25 +1,24 @@
---
layout: post
-title: Rendering events in | Syncfusion
-description: Learn here all about the pageRenderInitiate and pageRenderComplete event in Syncfusion Javascript PDF Viewer component of Syncfusion Essential JS 2 and more.
+title: Handle pageRenderInitiate and pageRenderComplete in JavaScript PDF Viewer | Syncfusion
+description: Learn how to use the pageRenderInitiate and pageRenderComplete events in the Syncfusion JavaScript PDF Viewer during page rendering.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# PageRenderInitiate and PageRenderComplete event
+# Handle pageRenderInitiate and pageRenderComplete events
-In Syncfusion PDF Viewer, [pageRenderInitiate](https://ej2.syncfusion.com/documentation/api/pdfviewer/#pagerenderinitiate) and [pageRenderComplete](https://ej2.syncfusion.com/documentation/api/pdfviewer/#pagerendercomplete) actions are events that occur during the rendering process of PDF documents.
+In the Syncfusion PDF Viewer, the [pageRenderInitiate](https://ej2.syncfusion.com/documentation/api/pdfviewer/#pagerenderinitiate) and [pageRenderComplete](https://ej2.syncfusion.com/documentation/api/pdfviewer/#pagerendercomplete) events occur during page rendering.
**pageRenderInitiate**
-The pageRenderInitiate event is triggered when the rendering of a page in the PDF document begins. This event provides developers with an opportunity to perform any necessary initialization or setup before the rendering of the page content commences. It can be utilized to prepare resources, set up rendering parameters, or execute any other actions required before the page rendering process starts.
+Triggered when page rendering begins. Use this event to initialize or set up resources before rendering starts.
**pageRenderComplete**
-The pageRenderComplete event is triggered when the rendering of a page in the PDF document is completed. This event allows developers to perform cleanup tasks or finalize rendering-related processes after the rendering of the page content finishes. It can be used to release resources, finalize rendering settings, or handle any post-rendering tasks necessary for the application.
+Triggered when page rendering completes. Use this event to perform cleanup or finalize rendering-related tasks.
```js
pdfviewer.pageRenderInitiate = args => {
@@ -35,6 +34,6 @@ pdfviewer.pageRenderComplete = args => {
};
```
-The provided code demonstrates how to subscribe to the [pageRenderInitiate](https://ej2.syncfusion.com/documentation/api/pdfviewer/#pagerenderinitiate) and [pageRenderComplete](https://ej2.syncfusion.com/documentation/api/pdfviewer/#pagerendercomplete) events in the Syncfusion PDF Viewer component.
+The provided code demonstrates how to subscribe to these events in the Syncfusion PDF Viewer component.
[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to/PageRenderStarted%20and%20PageRenderCompleted%20event)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/print-documents.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/print-documents.md
index 4471590e0..adf7d5f78 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/print-documents.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/print-documents.md
@@ -1,21 +1,20 @@
---
layout: post
-title: Print documents in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Print documents in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Print a document in JavaScript PDF Viewer | Syncfusion
+description: Learn how to programmatically print a PDF document using the print method in the Syncfusion JavaScript PDF Viewer.
platform: document-processing
-control: Print documents
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Print documents in Javascript Pdfviewer control
+# Print a document in JavaScript PDF Viewer
-The PDF Viewer library allows you to print the PDF document programmatically using the [**print()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#print) method in the **PrintModule**.
+Print a PDF document programmatically using the [print](https://ej2.syncfusion.com/documentation/api/pdfviewer/#print) method in the Print module.
The following steps are used to print the PDF document programmatically.
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
+**Step 1:** Follow the steps in the [Get started with JavaScript ES5 PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) guide to create a sample.
**Step 2:** Add the following code snippet to perform the print operation.
@@ -30,4 +29,4 @@ document.getElementById('print').addEventListener('click', ()=> {
});
```
-Find the Sample, [how to print the PDF document programmatically](https://stackblitz.com/edit/rawhaj?devtoolsheight=33&file=index.js)
\ No newline at end of file
+Find the sample: [Print the PDF document programmatically](https://stackblitz.com/edit/rawhaj?devtoolsheight=33&file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/resolve-unable-to-find-an-entry-point-error.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/resolve-unable-to-find-an-entry-point-error.md
index dd9c63179..d185e435d 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/resolve-unable-to-find-an-entry-point-error.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/resolve-unable-to-find-an-entry-point-error.md
@@ -1,27 +1,26 @@
---
layout: post
-title: Resolve unable to find an entry point error in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Resolve unable to find an entry point error in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Resolve “unable to find an entry point” error | Syncfusion
+description: Learn how to resolve the “unable to find an entry point” error after upgrading the Pdfium package in the Syncfusion JavaScript PDF Viewer.
platform: document-processing
-control: Resolve unable to find an entry point error
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Resolve unable to find an entry point error in Javascript Pdfviewer control
+# Resolve “unable to find an entry point” error
-From the release of version **21.1.0.35 (2023 Volume 1)** of Essential Studio, the Pdfium package has been upgraded to improve various functionalities like text search, text selection, rendering, and even performance. If you are updating your project to this version of the Syncfusion PDF Viewer, you may encounter the **"Web-Service is not listening"** error. The Network tab can help you identify the root cause of the issue, which is typically caused by an old version of pdfium assembly being referenced in the local web service project. Below are the assemblies to be referred to in the respective operating systems.
+Starting with **21.1.0.35 (2023 Volume 1)**, the Pdfium package was upgraded to improve text search, selection, rendering, and performance. After upgrading, the PDF Viewer may display a **“Web-Service is not listening”** error. In most cases, the Network tab reveals that an outdated Pdfium assembly is referenced in the local web service project. Ensure the correct native assembly is deployed for the target OS:
-* Windows – pdfium.dll
-* Linux – libpdfium.so
-* OSX – libpdfium.dylib
+- Windows: pdfium.dll
+- Linux: libpdfium.so
+- macOS: libpdfium.dylib

-## To solve this issue, you should follow the below steps
+## Resolution steps
-1. Clear the bin and object files of the web-service project.
-2. Re-publish the web-service project.
+1. Delete the bin and obj folders in the web service project.
+2. Rebuild and republish the web service.
-N>Note: If you are hosting your application in Azure, AWS, or in Linux environments, delete the older published files and republish the application.
\ No newline at end of file
+N> If hosting in Azure, AWS, or Linux environments, remove old published files on the server before republishing.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/restricting-zoom-in-mobile-mode-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/restricting-zoom-in-mobile-mode-js.md
index 6304106b2..d3b4a2a36 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/restricting-zoom-in-mobile-mode-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/restricting-zoom-in-mobile-mode-js.md
@@ -1,24 +1,23 @@
---
layout: post
-title: Restrict Zoom Percentage in Javascript Pdfviewer control | Syncfusion
-description: Learn here all how to restrict zoom percentage in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Restrict zoom percentage on mobile devices | Syncfusion
+description: Learn how to restrict zoom percentage on mobile devices using minZoom and maxZoom in the Syncfusion JavaScript PDF Viewer.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# How to Restrict Zoom Percentage on Mobile Devices
+# Restrict zoom percentage on mobile devices
-In Syncfusion PDF Viewer, you can easily restrict the zoom percentage on mobile devices using the **maxZoom** and **minZoom** property. This feature allows you to set specific limits for zooming, ensuring smoother scrolling performance and efficient document loading, on mobile devices.
+Restrict zoom on mobile devices using the `maxZoom` and `minZoom` properties. This improves scrolling performance and document loading on mobile.
{% tabs %}
{% highlight js tabtitle="Standalone" %}
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
- resourceUrl : "https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib"
+ resourceUrl : "https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib"
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar,
ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
@@ -58,6 +57,6 @@ pdfviewer.documentLoad = (): void => {
{% endhighlight %}
{% endtabs %}
-By implementing this, you ensure that the maximum zoom percentage on mobile devices is limited to 200% and the minimum zoom percentage is set to 10%. This prevents performance issues that may arise from excessive zooming on mobile platforms.
+This limits maximum zoom to 200% and minimum zoom to 10% on mobile devices, helping prevent performance issues from excessive zooming.
[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to/Restrict%20Zoom%20Percentage%20on%20Mobile%20Devices)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/select-multi-page-annotation.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/select-multi-page-annotation.md
index 46d4f0269..6a5a7cf7c 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/select-multi-page-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/select-multi-page-annotation.md
@@ -1,19 +1,18 @@
---
layout: post
-title: Select multi page annotation in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Select multi page annotation in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Select multi-page annotations in JavaScript PDF Viewer | Syncfusion
+description: Learn how to select multi-page TextMarkup annotations as a single annotation using enableMultiPageAnnotation in the Syncfusion JavaScript PDF Viewer.
platform: document-processing
-control: Select multi page annotation
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Select multi page annotation in Javascript Pdfviewer control
+# Select multi-page annotations in JavaScript PDF Viewer
-To select a multi-page TextMarkup annotation as a single annotation in a Syncfusion PDF viewer, you can use by enabling the [**enableMultiPageAnnotation**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#enablemultipageannotation) property. By default it is `false`.
+Select a multi-page TextMarkup annotation as a single annotation by enabling the [enableMultiPageAnnotation](https://ej2.syncfusion.com/documentation/api/pdfviewer/#enablemultipageannotation) property (default: `false`).
-Here is an example of how you can use the [**enableMultiPageAnnotation**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#enablemultipageannotation) property to select the multi page TextMarkup annotation as a single annotation, export and import multi page annotation:
+The following example shows how to select, export, and import a multi-page annotation:
```javascript
@@ -32,4 +31,4 @@ document.getElementById('import').addEventListener('click', () => {
```
-Find the sample [how to select multi-page TextMarkup annotation as single annotation](https://stackblitz.com/edit/1epvap-vewcbt?file=index.js)
\ No newline at end of file
+Find the sample: [Select a multi-page TextMarkup annotation as a single annotation](https://stackblitz.com/edit/1epvap-vewcbt?file=index.js)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/show-custom-stamp-item-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/show-custom-stamp-item-js.md
index aeb73dbf0..5ffb023fb 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/show-custom-stamp-item-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/show-custom-stamp-item-js.md
@@ -1,33 +1,33 @@
---
layout: post
-title: Displaying Custom Items in Custom Stamp in Syncfusion PDF Viewer
-description: Learn how to display custom items in the custom stamp Dropdown in Syncfusion PDF Viewer using JavaScript.
+title: Show custom items in the Custom Stamp dropdown in JavaScript PDF Viewer | Syncfusion
+description: Learn how to display custom items in the Custom Stamp dropdown using customStampSettings in the Syncfusion JavaScript PDF Viewer.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Displaying Custom Items in Custom Stamp Dropdown
+# Show custom items in the Custom Stamp dropdown
### Overview
-This guide explains how to add and display custom items in the custom stamp dropdown menu of Syncfusion's PDF Viewer using JavaScript. This feature allows users to easily access and apply custom stamps to their PDF documents.
+Add and display custom items in the Custom Stamp dropdown using JavaScript. This enables users to quickly apply personalized stamps in the PDF Viewer.
-### Steps to Show Custom Items in Custom Stamp Dropdown
+### Steps to show custom items in the Custom Stamp dropdown
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started) to create a simple PDF Viewer sample.
+**Step 1:** Follow the steps in the [Get started with JavaScript ES5 PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started) guide to create a sample.
-**Step 2:** Configure Custom Stamp Settings
+**Step 2:** Configure custom stamp settings
+
+Use `customStampSettings` to specify the custom stamps that should appear in the dropdown menu.
-Within the PDF Viewer setup, utilize `customStampSettings` to specify the custom stamps that should appear in the dropdown menu.
```js
// Initialize the PDF Viewer component
var pdfviewer = new ej.pdfviewer.PdfViewer({
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
- resourceUrl: 'https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
// Configure custom stamp settings
customStampSettings: {
isAddToMenu: true,
@@ -48,6 +48,6 @@ var pdfviewer = new ej.pdfviewer.PdfViewer({
```
-By following these instructions, you can successfully configure to display custom items in the custom stamp dropdown, allowing users to easily apply personalized stamps to their documents.
+By following these steps, the Custom Stamp dropdown will display the configured items, allowing users to apply personalized stamps to documents.
[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/show-hide-annotation-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/show-hide-annotation-js.md
index 3e6bbb3be..c024fecd7 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/show-hide-annotation-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/show-hide-annotation-js.md
@@ -1,41 +1,41 @@
---
layout: post
-title: Show and Hide Annotations in JavaScript PdfViewer | Syncfusion
-description: Learn how to show or hide annotations in the Syncfusion Javascript PdfViewer control of Syncfusion Essential JS 2 and more.
+title: Show or hide annotations in JavaScript PDF Viewer | Syncfusion
+description: Learn how to toggle annotation visibility in the Syncfusion JavaScript PDF Viewer by exporting and importing annotations.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# Show and Hide Annotations in PDF Viewer
+# Show or hide annotations in the PDF Viewer
-## Overview
+### Overview
-This guide demonstrates how to show or hide annotations in the Syncfusion PDF Viewer control. This functionality allows users to temporarily remove annotations from view and restore them later without permanently deleting them.
+Toggle annotation visibility in the Syncfusion PDF Viewer using JavaScript. Hide annotations for a cleaner view and show them again as needed.
-## How to Show/Hide Annotations
+### How to Toggle Annotation Visibility
-**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started) to create a simple PDF Viewer sample.
+**Step 1:** Follow the steps in the [Get started with JavaScript ES5 PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started) guide to create a sample.
-**Step 2:** Create a Button in Your HTML File
+**Step 2:** Create Toggle Buttons in Your HTML File
-Add a toggle button element in your HTML file that will control the visibility of annotations.
+Add button elements in your HTML file that will trigger the show and hide functionality.
```html
```
-**Step 3:** Initialize the PDF Viewer with Annotation Support
-Set up the PDF Viewer with necessary modules including Annotation support.
+**Step 3:** Initialize the PDF Viewer with Required Modules
+
+In your JavaScript file, initialize the PDF Viewer with necessary modules including the Annotation module.
```js
let exportObject = null;
var pdfviewer = new ej.pdfviewer.PdfViewer({
- resourceUrl: 'https://cdn.syncfusion.com/ej2/30.1.37/dist/ej2-pdfviewer-lib',
+ resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
});
ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print,
@@ -43,9 +43,10 @@ ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearc
ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer);
pdfviewer.appendTo('#PdfViewer');
```
-**Step 4:** Add Toggle Functionality for Annotations
-Implement the toggle button click event to show or hide annotations.
+**Step 4:** Implement the Show/Hide Annotation Functionality
+
+Add the code to handle the show and hide functionality of annotations by exporting and importing them as needed.
```js
// Function to hide annotations
@@ -67,6 +68,6 @@ document.getElementById('unhideBtn').addEventListener('click', UnHideAnnotations
```
### Conclusion
-This implementation provides a clean way to temporarily hide and show annotations in the PDF Viewer without permanently deleting them. This can be useful in scenarios where users need to temporarily view the document without annotations for better clarity.
+These steps add the ability to toggle annotation visibility in a PDF Viewer application for selective viewing.
[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/signatureselect-signatureunselect-js.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/signatureselect-signatureunselect-js.md
index 817a00a77..abd48e9a3 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/signatureselect-signatureunselect-js.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/signatureselect-signatureunselect-js.md
@@ -1,27 +1,26 @@
---
layout: post
-title: Selection events in | Syncfusion
-description: Learn here all about the SignatureSelect and SignatureUnselect event in Syncfusion Javascript PDF Viewer component of Syncfusion Essential JS 2 and more.
+title: Handle signatureSelect and signatureUnselect events in JavaScript PDF Viewer | Syncfusion
+description: Learn how to handle signatureSelect and signatureUnselect events in the Syncfusion JavaScript PDF Viewer to manage handwritten signature selection state.
platform: document-processing
control: PDF Viewer
-publishingplatform: Javascript
documentation: ug
domainurl: ##DomainURL##
---
-# SignatureSelect and SignatureUnselect event
+# Handle signatureSelect and signatureUnselect events
-The Syncfusion PDF Viewer provides event-handling capabilities for various actions, including selecting and unselecting handwritten signatures. The [signatureSelect](https://ej2.syncfusion.com/documentation/api/pdfviewer/#signatureselect) and [signatureUnselect](https://ej2.syncfusion.com/documentation/api/pdfviewer/#signatureunselect) events enable developers to programmatically manage the selection state of signatures within the PDF Viewer component.
+Use the [signatureSelect](https://ej2.syncfusion.com/documentation/api/pdfviewer/#signatureselect) and [signatureUnselect](https://ej2.syncfusion.com/documentation/api/pdfviewer/#signatureunselect) events to manage the selection state of handwritten signatures in the PDF Viewer.
**signatureSelect**
-The [signatureSelect](https://ej2.syncfusion.com/documentation/api/pdfviewer/#signatureselect) event triggers when a handwritten signature annotation is selected. This event allows developers to capture the signature selection and handle it programmatically, such as updating the UI or storing the selection data for further processing.
+Triggered when a handwritten signature annotation is selected. Use this event to capture selection and update the UI or store state.
**signatureUnselect**
-The [signatureUnselect](https://ej2.syncfusion.com/documentation/api/pdfviewer/#signatureunselect) event triggers when a handwritten signature annotation is unselected. This event enables developers to manage the unselection programmatically, which can be useful for tasks like cleanup operations or updating the application's state to reflect that a signature is no longer selected.
+Triggered when a handwritten signature annotation is unselected. Use this event to handle cleanup or update application state.
-The code snippet demonstrates how to subscribe to the [signatureSelect](https://ej2.syncfusion.com/documentation/api/pdfviewer/#signatureselect) and [signatureUnselect](https://ej2.syncfusion.com/documentation/api/pdfviewer/#signatureunselect) events in the Syncfusion PDF Viewer component.
+The following code demonstrates how to subscribe to these events:
```js
pdfviewer.signatureSelect = (args: any) => {
@@ -33,6 +32,4 @@ pdfviewer.signatureUnselect = (args: any) => {
};
```
-The `signatureSelect` and `signatureUnselect` events in Syncfusion PDF Viewer offer robust options for managing the state of handwritten signatures within your application. By handling these events, developers can create a more interactive and dynamic user experience, responding programmatically to signature selection and unselection.
-
-[View sample in GitHub]()
\ No newline at end of file
+These events enable robust management of handwritten signature state, supporting interactive and dynamic user experiences.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/unload-documents.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/unload-documents.md
index 5902d6f0a..f3b2eed11 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/unload-documents.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/unload-documents.md
@@ -1,15 +1,14 @@
---
layout: post
-title: Unload documents in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Unload documents in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Unload document in JavaScript PDF Viewer | Syncfusion
+description: Learn here all about Unload document in Syncfusion JavaScript PDF Viewer control of Syncfusion Essential JS 2 and more.
platform: document-processing
-control: Unload documents
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Unload documents in Javascript Pdfviewer control
+# Unload document in JavaScript PDF Viewer
The PDF Viewer library allows you to unload the PDF document being display in the PDF Viewer control programmatically using the [**unload()**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#unload) method.
diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/use-local-script-and-style-references.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/use-local-script-and-style-references.md
index 4bbd7eb0f..fc8abd7bb 100644
--- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/use-local-script-and-style-references.md
+++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/use-local-script-and-style-references.md
@@ -1,19 +1,18 @@
---
layout: post
-title: Use local script and style references in Javascript Pdfviewer control | Syncfusion
-description: Learn here all about Use local script and style references in Syncfusion Javascript Pdfviewer control of Syncfusion Essential JS 2 and more.
+title: Use local script and style references in JavaScript PDF Viewer control | Syncfusion
+description: Learn how to configure local script and style references for the Syncfusion JavaScript PDF Viewer control and reference them within your application.
platform: document-processing
-control: Use local script and style references
-publishingplatform: Javascript
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Use local script and style references in Javascript Pdfviewer control
+# Use local script and style references in JavaScript PDF Viewer
-**Step 1:** Create an app folder `myapp` for Essential JS 2 JavaScript components.
+**Step 1:** Create an application folder named `myapp` for Essential JS 2 JavaScript components.
-**Step 2:** You can get the global scripts and styles from the [Essential Studio JavaScript (Essential JS 2)](https://www.syncfusion.com/downloads/essential-js2/) build installed location.
+**Step 2:** Download the global scripts and styles from the [Essential Studio JavaScript (Essential JS 2) build](https://www.syncfusion.com/downloads/essential-js2/) installed on your machine.
**Syntax:**
> Script: `**(installed location)**/Syncfusion/Essential Studio/JavaScript - EJ2/{RELEASE_VERSION}/Web(Essential JS 2)/JavaScript/{PACKAGE_NAME}/dist/{PACKAGE_NAME}.min.js`
@@ -25,7 +24,7 @@ domainurl: ##DomainURL##
>
> Styles: `C:/Program Files (x86)/Syncfusion/Essential Studio/JavaScript - EJ2/19.3.53/Web(Essential JS 2)/JavaScript/ej2-js-es5/styles/material.css`
-You can also clone the [`Essential JS 2 quickstart`](https://github.com/syncfusion/ej2-quickstart.git) project and install necessary packages by using the following commands.
+Alternatively, clone the [`Essential JS 2 quickstart`](https://github.com/syncfusion/ej2-quickstart.git) project and install the required packages by running the following commands.
```
git clone https://github.com/syncfusion/ej2-quickstart.git quickstart
@@ -33,9 +32,9 @@ cd quickstart
npm install
```
-**Step 3:** Create a folder `myapp/resources` and copy/paste the scripts and styles of ej2 package from the above installed location to `myapp/resources` location.
+**Step 3:** Create a folder named `myapp/resources` and copy the EJ2 scripts and styles from the installed location into the `myapp/resources` directory.
-**Step 4:** Add the `Div` element and initiate the `Essential JS 2 PDF Viewer` component with script and style references in the `index.html` by using following code
+**Step 4:** Add the `div` element and initialize the Essential JS 2 PDF Viewer component in `index.html` with the local script and style references.
```html
@@ -67,6 +66,6 @@ npm install