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
# Redaction in mobile view in React PdfViewer component
10
+
# Redaction in mobile view in React PDF Viewer
11
11
12
-
The Redaction tool lets users permanently mark and remove sensitive content from PDF documents in mobile view. It is optimized for touch interactions and provides a streamlined redaction workflow for phones and tablets.
12
+
## Overview
13
+
14
+
This tutorial teaches you how to enable and use the Redaction tools in the Syncfusion React PDF Viewer optimized for mobile (phone/tablet) screens. You will add a redaction button to the viewer toolbar, open the viewer on a small-screen layout, create selective and page-wide redactions, customize appearance, and apply redactions permanently.
15
+
16
+
**Outcome**: a working React sample where users can mark content for redaction using touch, configure appearance, and apply redactions.
13
17
14
18

15
19
16
-
N> In mobile view, the redaction toolbar appears at the bottom of the viewer for easy thumb access. Mobile layout activates automatically on small screens.
17
-
18
-
## Adding Redaction in Mobile View
19
-
20
-
To enable redaction functionality in your React application, configure the PDF Viewer with the following setup:
N> In mobile view the redaction toolbar appears at the bottom of the viewer for easy thumb access. Mobile layout activates automatically on small screens.
71
21
72
-
## Understanding mobile redaction toolbar tools
22
+
## Prerequisites
73
23
74
-
When entering redaction mode in mobile view, a specialized redaction toolbar appears with tools optimized for touch. Each tool supports a specific step in the redaction workflow.
24
+
- A React project with PDF Viewer added to project. See [getting started guide](../getting-started)
75
25
76
-
### Redaction annotation tool
26
+
##Steps
77
27
78
-
The Redaction Annotation tool creates rectangular overlays that mark content for removal.
28
+
1. Add the PdfViewer to your React app and include the redaction toolbar item.
79
29
80
-
Function: create visual redaction annotations that mark content for permanent removal.
30
+
- Enable the redaction tool with the code example in this [guide](./toolbar#enable-redaction-toolbar). The example includes a toolbar entry for [`RedactionEditTool`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbaritem) which enables redaction controls in the viewer.
81
31
82
-
Usage: touch and drag to draw rectangular redaction overlays.
32
+
2. Start the app and open it on a narrow viewport (phone width) to trigger mobile layout.
83
33
84
-
Process:
34
+
3. Use the mobile redaction toolbar (bottom of the screen) to:
35
+
- Draw redaction boxes with the Redaction Annotation tool (touch & drag)
36
+
- Use Page Redaction to redact odd/even/specified pages
37
+
- Open Redaction Properties to change overlay color, overlay text, and font
85
38
86
-
- Selected content shows a customizable overlay (default black).
87
-
- Annotations remain editable until explicitly applied and can be repositioned or deleted.
39
+
4. Review annotations, then tap Apply Redactions to permanently remove content.
When entering redaction mode in mobile view, a specialized redaction toolbar appears with tools optimized for touch. Each tool supports a specific step in the redaction workflow.
92
44
93
-
The Page Redaction tool supports batch redaction of entire pages based on patterns.
45
+
### Redaction annotation tool
94
46
95
-

47
+
The Redaction Annotation tool creates rectangular overlays that mark content for removal. Touch and drag to draw boxes; overlays remain editable until applied.
96
48
97
-
Function: redact complete pages or page ranges with one action.
3. Configure redaction parameters using the selected tool interface.
139
-
140
-
## Applying different redaction types in mobile view
141
-
142
-
### Selective content redaction
143
-
144
-
1. Select the Redaction Annotation tool.
145
-
2. Tap and drag to select content or draw rectangular areas.
146
-
3. Preview overlays for accuracy.
147
-
4. Tap **Apply Redactions** to apply selected annotations.
148
-
149
-
### Page-wide redaction
150
-
151
-
1. Select the Page Redaction tool.
152
-
2. Choose a pattern (odd, even, specific range).
153
-
3. Review affected pages in the viewer.
154
-
4. Confirm and apply redaction for chosen pages.
155
-
156
-
### Custom appearance redaction
157
-
158
-
1. Select the Redaction Properties tool.
159
-
2. Adjust colors, overlay text, and formatting.
160
-
3. Preview changes on existing annotations.
161
-
4. Apply to use the customized appearance for final redaction.
162
-
163
67
## Applying redactions in mobile view
164
68
165
-
Note: Applying redactions is permanent. After applying, underlying content and extracted text are removed and cannot be recovered. Back up the original document before applying redactions.
166
-
167
-
After configuring redactions using any combination of tools:
69
+
Applying redactions is permanent. Back up the original document before applying.
168
70
169
71
1. Review all redaction marks and configurations.
170
72
171
-

73
+

74
+
172
75
2. Tap the **Apply Redactions** button in the redaction toolbar.
173
76
174
-

77
+

175
78
176
79
3. Confirm the action when prompted — this operation is irreversible.
The selected content is permanently removed and replaced according to redaction properties (solid overlays or custom overlay text).
83
+
4. After applying, the selected content is permanently removed and replaced according to redaction properties.
181
84
182
-

85
+

183
86
184
-
## Removing redaction annotations
87
+
###Removing redaction annotations
185
88
186
-
To remove existing redaction annotations before they are applied:
187
-
188
-
1. Tap the Redaction Edit button in the mobile toolbar to enter annotation editing mode.
189
-
2. Tap an existing redaction annotation to select it.
190
-
3. Choose **Delete** from the context menu or use the delete option in the annotation properties panel.
89
+
To remove a redaction annotation prior to applying it: enter Redaction Edit mode, tap the annotation to select it and choose Delete.
191
90
192
91

193
92
194
-
N> Once redactions are applied they become part of the PDF content and cannot be removed or modified.
93
+
## Mobile redaction workflow
94
+
95
+
1. Tap the Redaction button in the main toolbar to open the mobile redaction toolbar at the bottom.
96
+
2. Choose Redaction Annotation to draw boxes by touch-and-drag.
97
+
3. Use Redaction Properties to set fill color and overlay text.
98
+
4. Tap Apply Redactions to make changes permanent (this is irreversible).
99
+
100
+
## Troubleshooting
101
+
102
+
- If toolbar or redaction controls don't appear: ensure your [`toolbarSettings`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#toolbarsettings) includes [`RedactionEditTool`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbaritem) and that the `Inject` list contains [`Annotation`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/annotation).
103
+
- If the viewer is blank: confirm [`resourceUrl`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#resourceurl) points to the correct Syncfusion PDF Viewer resource package version.
104
+
- For production builds, ensure your app serves the WASM and resource files from [`resourceUrl`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#resourceurl) or a hosted CDN.
195
105
196
-
## See Also
106
+
## Related topics
197
107
198
-
*[Redaction Overview](./overview)
199
-
*[UI Interaction](./ui-interaction)
200
-
*[Programmatic Support in Redaction](./programmatic-support)
201
-
*[Toolbar](./toolbar)
202
-
*[Search Text and Redact](./search-redact)
108
+
-[Redaction Overview](./overview)
109
+
-[UI Interaction](./ui-interaction)
110
+
-[Programmatic Support in Redaction](./programmatic-support)
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/react/Redaction/overview.md
+3-54Lines changed: 3 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,71 +1,20 @@
1
1
---
2
2
layout: post
3
-
title: Redaction annotation in React PDF Viewer | Syncfusion
3
+
title: Redact sensitive content in React PDF Viewer | Syncfusion
4
4
description: Learn how to hide sensitive information with interactive and programmatic redaction using the Syncfusion React PDF Viewer.
5
5
platform: document-processing
6
6
control: PDF Viewer
7
7
documentation: ug
8
8
domainurl: ##DomainURL##
9
9
---
10
10
11
-
# Redaction in React PdfViewer
11
+
# Redact sensitive content in React PDF Viewer
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
15
## Enable the redaction toolbar
16
16
17
-
To enable the redaction toolbar, configure the `toolbarSettings.toolbarItems` property of the PdfViewer instance to include the **RedactionEditTool**.
18
-
19
-
The following example shows how to enable the redaction toolbar:
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.
69
18
70
19
N> Prerequisites: Add the PdfViewer control to your React application and ensure the redaction feature is available in the version you are using. Once applied, redaction permanently removes the selected content.
0 commit comments