For the complete documentation index, see llms.txt. This page is also available as Markdown.

Redacting PDFs in UI or Programmatically using JavaScript

Requirements

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

Package: RedactionLive demo

Redactions can be applied using the WebViewer UI or programmatically.

Applying redactions with WebViewer

A user can simply click on a redaction annotation and click on the apply button to apply a single redaction. Try this out now with our redaction demo.

There is also an 'Apply All' button that applies every redaction annotation in the document.

Applying redactions programmatically

Redactions can be applied using the applyRedactions function on AnnotationManager. applyRedactions returns a promise and can be used to apply a single redaction, an array of redactions, or all redactions in a document. When using WebViewer Server, the returned promise will resolve to a response object with a URL to download the redacted document.

Last updated

Was this helpful?