> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/web/redaction/redaction.md).

# True PDF Redaction Library Using JavaScript

Learn about redaction, a two-step process involving marking content for removal and applying redactions to permanently remove information. Discover how to set up WebViewer for redaction and redact con

{% hint style="info" %}
**Requirements**

*These packages are required to use these features in production. Trial keys have unlimited access to all features*

<a href="https://apryse.com/capabilities#Redaction" class="button primary">Package: Redaction</a><a href="https://showcase.apryse.com/redaction" class="button primary">Live demo</a>
{% endhint %}

Redaction is a form of editing where information is permanently removed from a document. This is typically used to remove classified information so confidential documents can be distributed.

PDF redaction offers options to remove (not just cover or obscure) content within a region of PDF. With printed pages, redaction involves blacking-out or cutting-out areas of the printed page. With electronic documents that use formats such as PDF, redaction typically involves removing sensitive content within documents for safe distribution to courts, patent and government institutions, the media, customers, vendors or any other audience with restricted access to the content.

Redaction consists of two steps:

1. Marking content (text, images, or pages) for redaction using redact annotations. This creates a rectangle around the content to be removed and hovering over the redaction will show what it will look like when it's applied.
2. Applying redactions to remove information. Typically, a black rectangle is used to cover up the redacted area but this can be configured to another color or to show overlay text. This step is irreversible and the content is permanently removed.

{% hint style="warning" %}
Redactions need to be applied for the content to be removed. Even if a redaction annotation obscures text from being viewed, it's still possible to get access to the information behind the redaction.
{% endhint %}

## Demos

[Redaction - Launch Demo](https://showcase.apryse.com/redaction)

## Get started

[Setup WebViewer for redaction](/web/redaction/redaction-setup.md) To setup Webviewer to create and apply redactions.

[Create marked content to be redacted](/web/redaction/creating-redaction.md) To create marked content to be removed for redaction.

[Redact from a PDF document](/web/redaction/redact.md) To redact content from a PDF document.

## Related blogs

[Safeguarding Sensitive Information: PDF Data Redaction Guide with Angular in WebViewer](https://apryse.com/blog/redaction-in-angular) - 10/25/23

[Explaining Redaction, and the Different Ways to Redact](https://apryse.com/blog/ultimate-redaction-guide) - 7/20/23

[Redacting Sensitive Information Using JavaScript](https://apryse.com/blog/pdf-redaction-using-javascript) - 6/22/23

[Automating Document Redaction in a Web App using JavaScript](https://apryse.com/blog/redaction/automated-redaction-with-javascript) - 2/12/20


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.apryse.com/web/redaction/redaction.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
