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/Redaction/overview.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,9 @@ domainurl: ##DomainURL##
12
12
13
13
Redaction annotations hide confidential or sensitive information in a PDF. The Syncfusion React PDF Viewer (EJ2) enables marking areas or entire pages for redaction, customizing appearance, and applying changes permanently.
14
14
15
+
Check out the following video to learn how to Redact PDF Content in the React PDF Viewer.
To enable the redaction toolbar, configure the [`toolbarSettings.toolbarItems`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbarsettings#toolbaritems) property of the PdfViewer instance to include the **RedactionEditTool**. See this [guide](./toolbar#enable-redaction-toolbar) to enable redaction toolbar.
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/react/how-to/extract-text.md
+46-59Lines changed: 46 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,86 +7,73 @@ platform: document-processing
7
7
documentation: ug
8
8
---
9
9
10
-
## Extract text method in the PDF Viewer
10
+
# Extract text method in the PDF Viewer
11
+
12
+
## Overview
11
13
12
14
The `extractText` method retrieves text content and, optionally, positional data for elements on one or more pages. It returns a Promise that resolves to an object containing extracted `textData` (detailed items with bounds) and `pageText` (concatenated plain text).
13
15
14
-
**Parameters overview:**
16
+
## Parameters
15
17
16
18
-`startIndex` — Starting page index (0-based).
17
-
-`endIndex` or options — Either the ending page index for a range extraction, or an options object specifying extraction criteria for a single page.
19
+
-`endIndex` or `options` — Either the ending page index for a range extraction, or an options object specifying extraction criteria for a single page.
18
20
-`options` (optional) — Extraction options such as `TextOnly` or `TextAndBounds` to control whether bounds are included.
19
21
20
-
**Returned object shape (example):**
22
+
## Returned object
21
23
22
24
-`textData` — Array of objects describing extracted text items, including bounds and page-level text.
23
25
-`pageText` — Concatenated plain text for the specified page(s).
24
26
25
-
### Usage of extractText in Syncfusion PDF Viewer Control
27
+
##Complete example
26
28
27
29
Here is an example that demonstrates how to use the extractText method along with event handling:
0 commit comments