You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/react/how-to/clear-annotation.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ domainurl: ##DomainURL##
10
10
11
11
# Clear annotations in React PDF Viewer
12
12
13
-
Use the [deleteAnnotations](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/#deleteannotations) method to clear all annotations in the currently loaded document.
13
+
Use the [deleteAnnotations](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#deleteannotations) method to clear all annotations in the currently loaded document.
14
14
15
15
Example: Clear all annotations in the loaded document
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/react/text-search.md
+20-10Lines changed: 20 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,10 +200,10 @@ export default function WholeWordExample() {
200
200
201
201
The following text search methods are available in the PDF Viewer,
202
202
203
-
*[**Search text**](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearch/#searchtext):- Searches the target text in the PDF document and highlights the occurrences in the pages.
204
-
*[**Search next**](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearch/#searchnext):- Searches the next occurrence of the searched text from the current occurrence of the PDF Viewer.
205
-
*[**Search previous**](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearch/#searchprevious):- Searches the previous occurrence of the searched text from the current occurrence of the PDF Viewer.
206
-
*[**Cancel text search**](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearch/#canceltextsearch):- The text search can be canceled and the highlighted occurrences from the PDF Viewer can be removed .
203
+
*[**Search text**](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearch#searchtext):- Searches the target text in the PDF document and highlights the occurrences in the pages.
204
+
*[**Search next**](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearch#searchnext):- Searches the next occurrence of the searched text from the current occurrence of the PDF Viewer.
205
+
*[**Search previous**](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearch#searchprevious):- Searches the previous occurrence of the searched text from the current occurrence of the PDF Viewer.
206
+
*[**Cancel text search**](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearch#canceltextsearch):- The text search can be canceled and the highlighted occurrences from the PDF Viewer can be removed .
207
207
208
208

209
209
@@ -566,17 +566,19 @@ The PDF Viewer triggers events during text search operations, allowing you to cu
566
566
567
567
### textSearchStart
568
568
569
-
The [textSearchStart](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/#textsearchstartevent) event is raised the moment a search is initiated from the toolbar UI or by calling `textSearch.searchText(...)` programmatically.
569
+
The [textSearchStart](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#textsearchstartevent) event is raised the moment a search is initiated from the toolbar UI or by calling `textSearch.searchText(...)` programmatically.
570
570
571
571
- Triggers when: the user submits a term in the search box or when code calls the search API.
572
572
573
-
- Event arguments include ([TextSearchStartEventArgs](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearchStartEventArgs/)):
573
+
- Event arguments include ([TextSearchStartEventArgs](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearchStartEventArgs)):
574
574
- searchText: string — the term to search.
575
575
- matchCase: boolean — whether case-sensitive search is enabled.
576
576
- isMatchWholeWord: boolean — whether whole-word matching is enabled.
577
577
- name: string — event name.
578
578
- cancel: boolean — set to true to cancel the default search.
579
579
580
+
{% tabs %}
581
+
{% highlight ts tabtitle="Standalone" %}
580
582
{% raw %}
581
583
582
584
import React from 'react';
@@ -598,19 +600,22 @@ export default function App() {
598
600
}
599
601
{% endraw %}
600
602
{% endhighlight %}
603
+
{% endtabs %}
601
604
602
605
### textSearchHighlight
603
606
604
-
The [textSearchHighlight](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/#textsearchhighlightevent) event fires whenever an occurrence is highlighted during search or when navigating to next/previous results.
607
+
The [textSearchHighlight](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#textsearchhighlightevent) event fires whenever an occurrence is highlighted during search or when navigating to next/previous results.
605
608
606
609
- Triggers when: a match is brought into view and highlighted (including navigation between matches).
607
-
- Event arguments include ([TextSearchHighlightEventArgs](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearchHighlightEventArgs/)):
610
+
- Event arguments include ([TextSearchHighlightEventArgs](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearchHighlightEventArgs)):
608
611
- bounds: RectangleBoundsModel | RectangleBoundsModel[] — rectangles of the highlighted match.
609
612
- pageNumber: number — page index where the match is highlighted.
610
613
- searchText: string — the searched term.
611
614
- matchCase: boolean — whether case-sensitive search was used.
612
615
- name: string — event name.
613
616
617
+
{% tabs %}
618
+
{% highlight ts tabtitle="Standalone" %}
614
619
{% raw %}
615
620
616
621
import React from 'react';
@@ -631,23 +636,26 @@ export default function App() {
631
636
}
632
637
{% endraw %}
633
638
{% endhighlight %}
639
+
{% endtabs %}
634
640
635
641
### textSearchComplete
636
642
637
-
The [textSearchComplete](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#textsearchcompleteevent) event is raised after the search engine finishes scanning and resolving all matches for the current query.
643
+
The [textSearchComplete](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer#textsearchcompleteevent) event is raised after the search engine finishes scanning and resolving all matches for the current query.
638
644
639
645
- Triggers when: the search for the submitted term has completed across the document.
640
646
- Typical uses:
641
647
- Update UI with the total number of matches and enable navigation controls.
642
648
- Hide loading indicators or show a "no results" message if none were found.
643
649
- Record analytics for search effectiveness.
644
-
- Event arguments include ([TextSearchCompleteEventArgs](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearchCompleteEventArgs/)):
650
+
- Event arguments include ([TextSearchCompleteEventArgs](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/textSearchCompleteEventArgs)):
645
651
- totalMatches: number — total number of occurrences found.
646
652
- isMatchFound: boolean — indicates whether at least one match was found.
647
653
- searchText: string — the searched term.
648
654
- matchCase: boolean — whether case-sensitive search was used.
649
655
- name: string — event name.
650
656
657
+
{% tabs %}
658
+
{% highlight ts tabtitle="Standalone" %}
651
659
{% raw %}
652
660
653
661
import React from 'react';
@@ -668,6 +676,8 @@ export default function App() {
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/react/toolbar-customization/annotation-toolbar.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The annotation toolbar can be customized by showing or hiding default items and
16
16
17
17
Show or hide the annotation toolbar programmatically during initialization or at runtime.
18
18
19
-
Use the [EnableAnnotationToolbar](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/pdfViewerModel/#enableannotationtoolbar) property or the [showAnnotationToolbar](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbar/#showannotationtoolbar) method to toggle visibility.
19
+
Use the [EnableAnnotationToolbar](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/pdfViewerModel#enableannotationtoolbar) property or the [showAnnotationToolbar](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbar#showannotationtoolbar) method to toggle visibility.
20
20
21
21
The following code snippet explains how to show or hide the annotation toolbar using the `showAnnotationToolbar` method.
Choose which tools appear and control their order in the annotation toolbar.
106
106
107
-
Use [`PdfViewerToolbarSettings`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbarSettings/) with the [`AnnotationToolbarItems`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbarSettings/#annotationtoolbaritems) property to choose which tools are displayed in the annotation toolbar. The property accepts a list of [`AnnotationToolbarItem`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/annotationToolbarItem/) values. Only the items included in this list are shown; any item not listed is hidden. The rendered order follows the sequence of items in the list.
107
+
Use [`PdfViewerToolbarSettings`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbarSettings) with the [`AnnotationToolbarItems`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbarSettings#annotationtoolbaritems) property to choose which tools are displayed in the annotation toolbar. The property accepts a list of [`AnnotationToolbarItem`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/annotationToolbarItem) values. Only the items included in this list are shown; any item not listed is hidden. The rendered order follows the sequence of items in the list.
108
108
109
109
The annotation toolbar is presented when entering annotation mode in PDF Viewer and adapts responsively based on the available width. Include the Close tool to allow users to exit the annotation toolbar when needed.
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/react/toolbar-customization/custom-toolbar.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Follow these steps to create a custom toolbar for the PDF Viewer:
16
16
17
17
**Step 1: Create a simple PDF Viewer sample.**
18
18
19
-
Follow the steps provided in the [getting started](https://ej2.syncfusion.com/javascript/documentation/pdfviewer/getting-started/) guide to create a basic PDF Viewer sample.
19
+
Follow the steps provided in the [getting started](https://ej2.syncfusion.com/javascript/documentation/pdfviewer/getting-started) guide to create a basic PDF Viewer sample.
20
20
21
21
**Step 2: Add HTML elements for the custom toolbar.**
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/react/toolbar-customization/form-designer-toolbar.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The form designer toolbar can be customized by showing or hiding default items a
16
16
17
17
Show or hide the form designer toolbar programmatically during initialization or at runtime.
18
18
19
-
Use the [EnableFormDesigner](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/pdfViewerModel/#enableformdesigner) property or the [showFormDesignerToolbar](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbar/#showformdesignertoolbar) method to toggle visibility.
19
+
Use the [EnableFormDesigner](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/pdfViewerModel#enableformdesigner) property or the [showFormDesignerToolbar](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbar#showformdesignertoolbar) method to toggle visibility.
20
20
21
21
The following code snippet explains how to show or hide the toolbar using the `EnableFormDesigner` property.
22
22
@@ -89,7 +89,7 @@ export default App;
89
89
90
90
Choose which tools appear and control their order in the form designer toolbar.
91
91
92
-
Use [`PdfViewerToolbarSettings`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbarSettings/) with the [`FormDesignerToolbarItems`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbarSettings/#formdesignertoolbaritems) property to choose which form design tools are available. The property accepts a list of [`FormDesignerToolbarItem`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/formDesignerToolbarItem/) values. The items you include are both displayed and rendered in the order listed; any items you omit are hidden. This provides a streamlined, user-friendly form design experience across devices.
92
+
Use [`PdfViewerToolbarSettings`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbarSettings) with the [`FormDesignerToolbarItems`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbarSettings#formdesignertoolbaritems) property to choose which form design tools are available. The property accepts a list of [`FormDesignerToolbarItem`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/formDesignerToolbarItem) values. The items you include are both displayed and rendered in the order listed; any items you omit are hidden. This provides a streamlined, user-friendly form design experience across devices.
93
93
94
94
The following example demonstrates how to customize the form designer toolbar by configuring specific tools using `FormDesignerToolbarItem`.
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/react/toolbar-customization/primary-toolbar.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
---
2
2
layout: post
3
-
title: Primary Toolbar Customization in React PDF Viewer Component | Syncfusion
3
+
title: Primary Toolbar Customization in React PDF Viewer | Syncfusion
4
4
description: Learn here all about primary toolbar customization in Syncfusion React PDF Viewer component of Syncfusion Essential JS 2 and more.
5
5
platform: document-processing
6
6
control: PDF Viewer
7
7
documentation: ug
8
8
domainurl: ##DomainURL##
9
9
---
10
10
11
-
# Primary Toolbar Customization in PDF Viewer Component
11
+
# Primary Toolbar Customization in React PDF Viewer
12
12
13
13
The primary toolbar of the PDF Viewer can be customized by rearranging existing items, disabling default items, and adding custom items. New items can be placed at specific index positions among the existing items.
14
14
15
15
## Show or hide the primary toolbar
16
16
17
-
Toggle the built-in primary toolbar to create custom toolbar experiences or simplify the UI. In scenarios where a custom toolbar is required, the built-in toolbar can be hidden. Use the [enableToolbar](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/pdfViewerModel/#enabletoolbar) property or the [showToolbar](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbar/#showtoolbar) method to show or hide the primary toolbar.
17
+
Toggle the built-in primary toolbar to create custom toolbar experiences or simplify the UI. In scenarios where a custom toolbar is required, the built-in toolbar can be hidden. Use the [enableToolbar](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/pdfViewerModel#enabletoolbar) property or the [showToolbar](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbar#showtoolbar) method to show or hide the primary toolbar.
18
18
19
19
Show or hide the toolbar using the `enableToolbar` property:
0 commit comments