Skip to content

Commit 4b790d3

Browse files
993766: Redaction UG in Vue Platform
1 parent 7a02f75 commit 4b790d3

32 files changed

+1477
-0
lines changed

Document-Processing-toc.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,16 @@
10171017
<li><a href="/document-processing/pdf/pdf-viewer/vue/annotation/comments">Comments</a></li>
10181018
</ul>
10191019
</li>
1020+
<li>Redaction
1021+
<ul>
1022+
<li><a href="/document-processing/pdf/pdf-viewer/vue/Redaction/overview">Overview</a></li>
1023+
<li><a href="/document-processing/pdf/pdf-viewer/vue/Redaction/programmatic-support">Programmatic Support</a></li>
1024+
<li><a href="/document-processing/pdf/pdf-viewer/vue/Redaction/ui-interaction">UI Interactions</a></li>
1025+
<li><a href="/document-processing/pdf/pdf-viewer/vue/Redaction/toolbar">Toolbar</a></li>
1026+
<li><a href="/document-processing/pdf/pdf-viewer/vue/Redaction/mobile-view">Mobile View</a></li>
1027+
<li><a href="/document-processing/pdf/pdf-viewer/vue/Redaction/search-redact">Search Text and Redact</a></li>
1028+
</ul>
1029+
</li>
10201030
<li><a href="/document-processing/pdf/pdf-viewer/vue/interaction-mode">Interaction Mode</a></li>
10211031
<li>Form Designer
10221032
<ul>
Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
---
2+
layout: post
3+
title: Redaction in mobile view in Vue PDF Viewer | Syncfusion
4+
description: Learn how to apply redactions in mobile view using the Syncfusion Vue PDF Viewer with a complete toolbar setup and redaction workflow.
5+
platform: document-processing
6+
control: PdfViewer
7+
documentation: ug
8+
---
9+
10+
# Redaction in Mobile View in Vue PdfViewer Component
11+
12+
The Redaction Tool enables users to permanently mark and remove sensitive content from PDF documents in mobile view using the Vue PdfViewer component. This feature is optimized for touch interactions and provides a streamlined redaction workflow specifically designed for mobile devices.
13+
14+
![Redaction in Mobile View](./redaction-annotations-images/redaction-mobile-view.png)
15+
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 Vue application, configure the PDF Viewer with the following setup:
21+
22+
{% tabs %}
23+
{% highlight html tabtitle="App.vue" %}
24+
25+
<template>
26+
<div class="control-section">
27+
<ejs-pdfviewer
28+
id="pdfViewer"
29+
:resourceUrl="resourceUrl"
30+
:documentPath="documentPath"
31+
:toolbarSettings="toolbarSettings"
32+
style="height: 680px"
33+
/>
34+
</div>
35+
</template>
36+
37+
<script>
38+
import {
39+
PdfViewerComponent,
40+
Toolbar,
41+
Magnification,
42+
Navigation,
43+
LinkAnnotation,
44+
BookmarkView,
45+
ThumbnailView,
46+
Print,
47+
TextSelection,
48+
TextSearch,
49+
Annotation,
50+
FormDesigner,
51+
FormFields,
52+
PageOrganizer
53+
} from '@syncfusion/ej2-vue-pdfviewer';
54+
55+
export default {
56+
name: 'App',
57+
components: {
58+
'ejs-pdfviewer': PdfViewerComponent
59+
},
60+
data() {
61+
return {
62+
resourceUrl: 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib',
63+
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
64+
toolbarSettings: {
65+
toolbarItems: [
66+
'OpenOption',
67+
'UndoRedoTool',
68+
'PageNavigationTool',
69+
'MagnificationTool',
70+
'PanTool',
71+
'SelectionTool',
72+
'CommentTool',
73+
'SubmitForm',
74+
'AnnotationEditTool',
75+
'RedactionEditTool', // Redaction entry in the primary toolbar
76+
'FormDesignerEditTool',
77+
'SearchOption',
78+
'PrintOption',
79+
'DownloadOption'
80+
]
81+
}
82+
};
83+
},
84+
provide: {
85+
PdfViewer: [
86+
Toolbar,
87+
Magnification,
88+
Navigation,
89+
Annotation,
90+
LinkAnnotation,
91+
BookmarkView,
92+
ThumbnailView,
93+
Print,
94+
TextSelection,
95+
TextSearch,
96+
FormFields,
97+
FormDesigner,
98+
PageOrganizer
99+
]
100+
}
101+
};
102+
</script>
103+
104+
{% endhighlight %}
105+
{% endtabs %}
106+
107+
## Understanding Mobile Redaction Toolbar Tools
108+
109+
When you enter redaction mode in mobile view, a specialized redaction toolbar appears with multiple tools optimized for touch interaction. Each tool serves a specific purpose in the redaction workflow.
110+
111+
### Redaction Annotation Tool
112+
113+
The Redaction Annotation tool is the primary redaction feature that allows you to draw redaction rectangles on specific content:
114+
115+
Function: Creates visual redaction annotations that mark content for permanent removal
116+
Usage:
117+
Touch and drag to draw rectangular redaction overlays on any content area.
118+
119+
Process:
120+
- Selected content appears with a customizable overlay (default black)
121+
- Annotations remain editable until explicitly applied
122+
- Can be repositioned or deleted before final application
123+
124+
![Redaction Annotation Tool](./redaction-annotations-images/redaction-annotation-annot.png)
125+
126+
### Page Redaction Tool
127+
128+
The Page Redaction tool enables batch redaction of entire pages based on specific patterns.
129+
130+
![Page Redaction Tool](./redaction-annotations-images/page-redaction-annot.png)
131+
132+
Function: Redacts complete pages or page ranges with a single action
133+
Options Available:
134+
- Odd Pages: Redacts only odd-numbered pages (1, 3, 5, etc.)
135+
- Even Pages: Redacts only even-numbered pages (2, 4, 6, etc.)
136+
- Specific Page: Specify single pages, ranges (e.g., 1-5, 10-15), or comma-separated lists (e.g., 1,3,5-7)
137+
- Current Page: Redacts only the currently displayed page
138+
139+
Usage:
140+
Select desired pattern → Review affected pages in the viewer → Confirm redaction scope
141+
142+
![Page Redaction Tool Dialog](./redaction-annotations-images/page-redaction-dialog-annot.png)
143+
144+
### Redaction Properties Tool
145+
146+
The Redaction Properties tool allows customization of redaction appearance before application.
147+
148+
![Redaction Properties Mobile View](./redaction-annotations-images/redaction-properties-annot.png)
149+
150+
Function: Customize the visual appearance of redaction overlays and text replacement
151+
Customizable Properties:
152+
- Fill Color: Change the redaction overlay color (default: black)
153+
- Outline Color: Set outline color for redaction boxes (optional)
154+
- Overlay Text: Add custom text to appear on redacted areas (e.g., "REDACTED", "CONFIDENTIAL")
155+
- Text Color: Change overlay text color for better visibility
156+
- Text Font: Select font family for overlay text
157+
- Text Alignment: Position overlay text within redaction boxes
158+
- Text Size: Adjust overlay text size relative to redaction area
159+
160+
![Redaction Properties Dialog Mobile View](./redaction-annotations-images/redaction-properties-dialog-annot.png)
161+
162+
## Enabling Redaction Mode in Mobile View
163+
164+
Step 1: Tap the Redaction button in the mobile toolbar to activate redaction mode. The redaction toolbar will appear at the bottom of the viewer.
165+
166+
![Redaction toolbar displayed at bottom of mobile PDF viewer with three distinct tools](./redaction-annotations-images/redaction-mobile-view.png)
167+
168+
Step 2: From the redaction toolbar, select your desired redaction tool:
169+
- First Tool (Redaction Annotation): For selective content redaction
170+
- Second Tool (Page Redaction): For page-wide or pattern-based redaction
171+
- Third Tool (Redaction Properties): For appearance customization
172+
173+
Step 3: Configure your redaction parameters using the selected tool interface.
174+
175+
## Applying Different Redaction Types in Mobile View
176+
177+
### Selective Content Redaction
178+
1. Select Redaction Annotation tool (first button)
179+
2. Choose Content: Tap and drag over text or draw rectangular areas
180+
3. Preview: Check redaction overlays for accuracy
181+
4. Apply: Tap "Apply Redactions" button
182+
183+
### Page-Wide Redaction
184+
1. Select Page Redaction tool (second button)
185+
2. Choose Pattern: Select odd pages, even pages, or custom range
186+
3. Review: Verify affected pages in the viewer
187+
4. Apply: Confirm page redaction scope and apply
188+
189+
### Custom Appearance Redaction
190+
1. Select Redaction Properties tool (third button)
191+
2. Customize: Adjust colors, overlay text, and formatting
192+
3. Preview: See changes applied to existing annotations
193+
4. Apply: Use customized appearance for final redaction
194+
195+
## Applying Redactions in Mobile View
196+
197+
N> Applying redactions is permanent. After applying, the underlying content and text are removed from the document and cannot be recovered.
198+
199+
Once you have configured redactions using any combination of tools.
200+
201+
Step 1: Review all redaction marks and configurations.
202+
203+
![Review Redaction Annotation](./redaction-annotations-images/review-redaction-annotation-mv-annot.png)
204+
205+
Step 2: Tap the Apply Redactions button in the redaction toolbar
206+
207+
![Apply Redaction Button](./redaction-annotations-images/apply-redaction-button-mv.png)
208+
209+
Step 3: Confirm the action when prompted - this operation is permanent and cannot be undone
210+
211+
![Apply Redaction Dialog](./redaction-annotations-images/apply-redaction-dialog-mv-annot.png)
212+
213+
The selected content will be permanently removed and replaced according to your redaction properties (solid color blocks or custom overlay text).
214+
215+
![Applied Redaction](./redaction-annotations-images/applied-redaction-annot.png)
216+
217+
## Removing Redaction Annotations
218+
219+
To remove existing redaction annotations before they are applied:
220+
221+
- Step 1: Tap the Redaction Edit button in the mobile toolbar to enter annotation editing mode
222+
- Step 2: Tap on any existing redaction annotation you wish to remove
223+
- Step 3: Select Delete from the context menu that appears
224+
225+
Alternative: Tap redaction annotation → Use delete button in annotation properties panel
226+
227+
![Delete Redaction Annotation](./redaction-annotations-images/delete-redaction-annotation-annot.png)
228+
229+
N> Once redactions have been applied to the document, they become part of the PDF content and cannot be removed or modified.
230+
231+
## See Also
232+
233+
* [Redaction Overview](./overview)
234+
* [UI Interaction](./ui-interaction)
235+
* [Programmatic Support in Redaction](./programmatic-support)
236+
* [Toolbar](./toolbar)
237+
* [Search Text and Redact](./search-redact)
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
layout: post
3+
title: Redaction annotation in Vue PDF Viewer | Syncfusion
4+
description: Learn how to hide sensitive information with interactive and programmatic redaction using the Syncfusion Vue PDF Viewer.
5+
platform: document-processing
6+
control: PDF Viewer
7+
documentation: ug
8+
domainurl: ##DomainURL##
9+
---
10+
11+
# Redaction in Vue PdfViewer
12+
13+
Redaction annotations are used to hide confidential or sensitive information in a PDF. The Syncfusion Vue PDF Viewer (EJ2) lets you mark areas or entire pages for redaction, customize their appearance, and permanently apply them with a single action.
14+
15+
N> Prerequisites: Add the PdfViewer control to your Vue application and ensure the redaction feature is available in the version you are using. Once applied, redaction permanently removes the selected content.
16+
17+
![Toolbar with the Redaction tool highlighted](redaction-annotations-images/redaction-icon-toolbar.png)
18+
19+
## Add Redaction Annotations
20+
21+
You can mark specific content for redaction using the toolbar or through code.
22+
23+
Select the **Redaction tool** and draw over the text or graphics you want to hide. You can also add overlay text (such as “Confidential”) and adjust the style — fill color, border color, and opacity.
24+
25+
![Drawing a redaction region over page content](redaction-annotations-images/adding-redaction-annotation.png)
26+
27+
## Delete Redaction Annotations
28+
29+
Redaction annotations can be removed easily:
30+
31+
- Click the **Delete** button on the toolbar, or
32+
- Select the annotation and press the **Delete** key.
33+
34+
![Toolbar showing the Delete command for redaction](redaction-annotations-images/redaction-delete-icon.png)
35+
36+
## Redact Entire Pages
37+
38+
The viewer allows you to redact whole pages that contain sensitive information. You can choose specific pages, page ranges, or redact all pages using the built‑in dialog, or perform the same action programmatically.
39+
40+
![Toolbar showing the Redact Page option](redaction-annotations-images/redact-page-icon.png)
41+
42+
## Apply Redaction
43+
44+
Once annotations are added, you can permanently apply them to the document. This action cannot be undone.
45+
46+
Use the **Apply Redaction** button on the toolbar or call the API method:
47+
48+
- The button is disabled until at least one redaction annotation exists.
49+
- It becomes active when redaction annotations are present.
50+
51+
![Toolbar showing the Apply Redaction button](redaction-annotations-images/redact-button-icon.png)
52+
53+
A confirmation dialog appears before applying redaction to ensure you acknowledge the irreversible nature of the process.
54+
55+
![Confirmation dialog for applying redaction](redaction-annotations-images/apply-redaction-dialog.png)
56+
57+
N> After redaction is applied, the original content cannot be recovered.
58+
59+
## Comment Support
60+
61+
Redaction annotations can include comments using the built‑in comment panel. This helps you add notes, track reviews, or record the reason for redaction.
62+
63+
Comments can be added through the UI or API. For more details, see the [Comments documentation](../annotations/comments).
64+
65+
## Import and Export Redaction Annotations
66+
67+
You can save and reload redaction annotations by exporting and importing them in JSON format. This makes it easy to persist annotations or share them across sessions.
68+
69+
For more details, see the [Export and import annotations documentation](../how-to/import-export-annotation).
70+
71+
## See also
72+
73+
* [Redaction UI interactions](./ui-interaction)
74+
* [Redaction Programmatic support](./programmatic-support)
75+
* [Redaction Toolbar](./toolbar)
76+
* [Redaction Mobile view](./mobile-view)
77+
* [Search Text and Redact](./search-redact)

0 commit comments

Comments
 (0)