Let people redact PDFs without leaving your app

Your users mark the names, numbers and passages that have to go, then apply the marks. Inkbar removes the content under them, checks the file it wrote and opens the redacted copy in the same viewer.

A page of customer records in the Inkbar viewer with three redaction marks over an NI number, an email address and a postal address, and a dialog asking to apply redactions to 3 marks on 1 page.

What your users can do

  • Drag a box over any part of a page, images included, or select text and mark it.
  • Press Apply redactions and confirm in a dialog that says how many marks on how many pages will go, and that it cannot be undone.
  • Keep working on the redacted file, which opens at the same page and zoom. Download and Print give the redacted copy.

What your app gets

  • The redacted file as bytes, through onRedacted, to store wherever your app keeps files.
  • Marks from your own detector, added through the same API as any other annotation, with your review data alongside.
  • A check after every apply. The engine reads the file it just wrote under each mark, and when it finds anything left, the apply fails and hands nothing over.
  • Applying also strips the file's metadata, attached files, scripts and page thumbnails, and rewrites the whole file so no earlier version stays inside it.

A short example

import {
  createApplyRedactionsButton,
  createToolbar,
  createToolButton,
  createViewer,
  redactAreaTool,
} from '@inkbar/core/dom'

const viewer = createViewer(el, {
  source,
  assets,
  tools: [redactAreaTool()],
  engine: () => import('@inkbar/engine'),
  onRedacted: ({ bytes }) => upload(bytes),
})

const bar = createToolbar()
bar.append(
  createToolButton(viewer, 'redact-area'),
  createApplyRedactionsButton(viewer)
)
viewer.element.prepend(bar)

The same viewer comes as components for Vue, React and Svelte.

Free under MIT.

Inkbar is open source. There is no licence fee and no per-seat price.

Read the Redaction guideTry it in the sandbox