---
title: "PDF redaction essentials | Nutrient"
canonical_url: "https://www.nutrient.io/guides/web/redaction/introduction-to-redaction/"
md_url: "https://www.nutrient.io/guides/web/redaction/introduction-to-redaction.md"
last_updated: "2026-06-09T10:24:43.371Z"
description: "Learn PDF redaction techniques to securely remove sensitive information and meet privacy regulations like GDPR and HIPAA, using a production-safe sequence: mark, permanently apply, then export/share."
---

# PDF redaction techniques for your documents

Redaction is the process of removing image, text, and vector content from a PDF page. This not only involves obscuring the content, but also removing the data in the document within the specified region.

Redaction is generally used when you want to remove personally identifiable or sensitive information from a document to ensure confidentiality and conform to regulations and privacy laws, such as GDPR or HIPAA. By using the Redaction component, the original content of a PDF can’t be restored, thereby guaranteeing privacy.

Redaction is a two-step process:

- First, redaction annotations are created in the areas that are to be redacted. This step won’t remove any content from the document yet; it just marks regions for redaction.

- Second, to actually remove the content, the redaction annotations need to be applied. In this step, the page content within the region of the redaction annotations is irreversibly removed.

The actual removal of content happens only after redaction annotations are applied to the document. Before applying them, they can be edited and removed the same as any other annotation.

For more information, see Adobe’s [PDF Redaction: Addendum for the PDF Reference](https://web.archive.org/web/20220306203025/https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdf_reference_archive/pdf_reference_addendum_redaction.pdf).

## Security of redaction

Redaction permanently removes the following information from a file:

- Visible text and the graphical content under the areas marked for redaction

- Annotations, comments, and markup intersecting the areas marked for redaction

The information isn’t simply obscured or masked, but is completely missing from the file.

Redaction doesn’t remove the following information:

- Metadata such as PDF title and author

- Embedded content and attached files (like XMP)

- Hidden layers

- Hidden text



- For legal/compliance-safe output, follow this sequence: mark redactions, permanently apply with [`instance.applyRedactions()`](https://www.nutrient.io/api/web/classes/NutrientViewer.Instance.html#applyredactions), and only then export/share.

- As a shorthand for one-step finalization, you can also export with operations via [`instance.exportPDFWithOperations()`](https://www.nutrient.io/api/web/classes/NutrientViewer.Instance.html#exportpdfwithoperations) using an `applyRedactions` operation. See it in action in the [Playground](https://www.nutrient.io/demo/sandbox?p=eyJq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lbW92ZUNoaWxkKGEpO1xuICAgICAgfSxcbiAgICB9LFxuICBdKTtcbiAgY29uc29sZS5sb2coXCJOdXRyaWVudCBsb2FkZWQhXCIpO1xuICBjb25zb2xlLmxvZyhcIkFQSSBkb2NzOiBodHRwczovL3d3dy5udXRyaWVudC5pby9hcGkvd2ViL1wiKTtcbiAgY29uc29sZS5sb2coXCJHdWlkZXM6IGh0dHBzOi8vd3d3Lm51dHJpZW50LmlvL2d1aWRlcy93ZWIvXCIpO1xufSk7XG4iLCJjc3MiOiIvKiBBZGQgeW91ciBDU1MgaGVyZSAqL1xuIiwic2V0dGluZ3MiOnsiZmlsZU5hbWUiOiJiYXNpYy5wZGYiLCJ1c2VEeW5hbWljRm9udHMiOnRydWUsImN1c3RvbUZvbnRGaWxlTmFtZXMiOltdfSwidiI6MX0%3D).

- For the canonical implementation flow, refer to the [production-safe redaction workflow](https://www.nutrient.io/guides/web/redaction/production-safe-workflow.md) guide.

<!-- This partial is rendered in guide articles describing redaction. -->

## Redacting graphic objects shared across pages

Graphic objects — including images and vector graphics — can be reused across pages in a PDF. If a graphic object is redacted and reused, all instances of that graphic object will also be redacted.

This means that, for example, when you redact part of an image, the same part of the same image on another page will also be redacted. This is compatible with how Adobe Acrobat does it. A common example of this is if you have to redact a logo that is shown on each page.

Even if the images look exactly the same, they could be separate images and not be redacted the same. Always be careful and review the redacted document when you’re done.

## Licensing

The following redaction features are part of the Redaction component that must be licensed separately. The following list describes the expected behavior if Redaction isn’t part of your license:

- The toolbar items for adding redactions can’t be added to the toolbar and the relevant text tooltip item will be hidden.

- Existing redaction annotations on a document won’t be rendered.

- [Redaction annotations](https://www.nutrient.io/api/web/classes/NutrientViewer.Annotations.RedactionAnnotation.html) can’t be created.

- The [`NutrientViewer.Instance#applyRedactions()`](https://www.nutrient.io/api/web/classes/NutrientViewer.Instance.html#applyredactions) and [`NutrientViewer.Instance#createRedactionsBySearch()`](https://www.nutrient.io/api/web/classes/NutrientViewer.Instance.html#createredactionsbysearch) APIs won’t work.

- The [`NutrientViewer.ViewState#previewRedactionMode`](https://www.nutrient.io/api/web/classes/NutrientViewer.ViewState.html#previewredactionmode) flag won’t have any effect.
---

## Related pages

- [JavaScript PDF redaction library](/guides/web/redaction.md)
- [Headless redaction](/guides/web/redaction/headless.md)
- [Redact PDFs using JavaScript tools](/guides/web/redaction/built-in-ui.md)
- [Automate document redaction with predefined patterns](/guides/web/redaction/preset-patterns.md)
- [Production-safe redaction workflow](/guides/web/redaction/production-safe-workflow.md)
- [Programmatically redact PDFs using JavaScript](/guides/web/redaction/programmatically.md)
- [Search and redact PDFs using JavaScript](/guides/web/redaction/search-and-redact.md)
- [Redact PDFs using regex](/guides/web/redaction/regex-patterns.md)

