PDF Redactions#


Redactions#

The redaction feature has been designed to work on text, images, and links. By selecting all or part of an image, text, or link, and applying redaction this then permanently redacts the selected information, making it impossible to retrieve the original data.

Redacted text and areas can be marked, and any marked redactions can be removed, however once the redactions are applied and the document is saved then the redacted information is blocked out with black to denote the area of redaction. At this point the original text and/or area is unretrievable.

Marking Text for Redaction#

To mark text for redaction call the redactMarkText() method against the DocumentView instance. The document’s currently selected text will then be marked with a red-outlined box to denote the redaction demarcation.

documentView.redactMarkText()

Marking an Area for Redaction#

To mark an area for redaction call the redactMarkArea() method against the DocumentView instance. The document will then enter a mode whereby the user can then draw a red-outlined boxed area to denote the redaction demarcation.

documentView.redactMarkArea()

Removing a Marked Redaction#

To remove a marked redaction call the redactRemove() method against the DocumentView instance. The document’s currently selected marked for redaction ( i.e. a selection of text or an area with the red box outline ) will then no longer be marked for redaction.

documentView.redactRemove()

Applying Redactions#

Applying redactions means that all document selections which are marked for redaction will be redacted. To apply redactions call the redactApply() method against the DocumentView instance. Once redactions have been applied then the redacted text is blocked out with black and the red redaction demarcation areas are removed.

documentView.redactApply()

Note

Redactions are not permanently set until the document is saved. If the document is exited without saving then the redactions will be lost.


This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at artifex.com or contact Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco, CA 94129, USA, for further information.Discord logo