Skip to content

Redacting Documents ​

Phanera has a built-in PDF redaction editor. It suggests what to black out, records which exemption each redaction relies on, and produces a copy in which the redacted text no longer exists.

Redaction works on PDFs only. Convert other file types to PDF before uploading if they need redacting.

Where the editor opens ​

The editor appears at the two points where a document is about to leave your organisation:

  • Attaching a response document. Any PDF you add to a response draft opens in the editor before it is uploaded. Redact and finalise, or close the editor to attach the file unchanged.
  • Publishing to the disclosure log. In the publish dialog, click Redact next to any PDF — response document or correspondence attachment. See Redacting before disclosure.

Redactions made for the disclosure log are stored, so reopening the editor resumes rather than restarts: the boxes you drew last time are still there, and you can add more or take some away.

Suggestions ​

The editor scans the document as soon as it opens, and builds a review queue in the Suggestions panel. Two passes feed it:

Pattern detection runs in your browser and finds the personal data that turns up in nearly every disclosure pack — email addresses, UK phone numbers, National Insurance numbers, postcodes, dates of birth, sort code and account number pairs, IBANs, and NHS numbers (checksum-validated, so a run of ten digits that is not an NHS number is not offered). It costs nothing, needs no AI, and never invents a match.

AI suggestions run on the server when AI features are enabled for your organisation and the request type has an exemption library. They catch the judgement calls patterns cannot: names, job titles, and identifying detail in free text. Each suggestion arrives already mapped to an exemption from your library, with a reason.

Only the text is sent

The PDF itself never leaves your browser. The editor extracts the page text and sends only that for the AI pass — the file is opened, rendered, and redacted entirely on your machine.

If AI is unavailable, or the request type has no exemption library, the editor says so and carries on with the pattern results. A failed AI call degrades the feature; it does not block it.

Reviewing the queue ​

Suggestions are grouped by value, not by position — one entry for [email protected], listing every place it occurs. For each entry you can:

  • Redact or Ignore a single occurrence
  • Redact all / Ignore all occurrences of that value at once
  • Redact all remaining suggestions, when you have satisfied yourself the whole queue is right

Undecided occurrences show as pending highlights on the page, so you can see in context what is being proposed. Deciding one removes it from the queue, and the panel tracks how many of the total you have reviewed.

Rescan runs both passes again — useful if AI was unavailable when the editor opened.

Suggestions are a starting point

The scans exist to save you time, not to take the decision. Nothing is redacted until you accept it, and the officer remains responsible for what is disclosed.

Drawing redactions by hand ​

Drag on the page to draw a box. Navigate pages with the arrows, and zoom in and out to work at a comfortable size — boxes are stored relative to the page, so they stay put whatever zoom you drew them at.

Select any box to change the exemption it relies on, or remove it.

Exemptions ​

Every redaction should record which exemption you are relying on. New boxes default to your library's personal-data exemption (s.40 or its equivalent) where one exists; suggestions carry the exemption the AI mapped them to.

The editor will not finalise while any redaction is untagged. This is what makes a schedule of redactions defensible later — a black box with no legal basis attached is very hard to justify to a requester or to the ICO.

If your library has no entry for the request's type, there is nothing to tag a box with and finalising stays unavailable. Add one in Settings → Exemptions, where the standard FOI, EIR and DPA sets can also be seeded in one go.

Exemptions come from your exemption library, scoped to the request's type.

Finalising ​

Finalise redactions produces the disclosable copy. What happens then matters, so it is worth being explicit about it:

Any page carrying a redaction is rendered to pixels, the black boxes are painted onto those pixels, and the result replaces the page. The redacted words cease to exist as text — they cannot be recovered by copy-paste, by selecting behind the box, or by any PDF parser. This is the failure that has embarrassed department after department, and drawing a black rectangle over live text does not avoid it.

Rasterising a page alone would also destroy the text you chose to disclose, leaving the page unselectable, unsearchable, and invisible to a screen reader. So after the image is placed, every text fragment the redactions do not touch is re-drawn over it invisibly, at its original position — the same technique that makes a scanned document searchable. Redacted fragments are simply never re-added.

Pages with no redactions on them are copied through untouched and keep their original text exactly.

The exemption is printed on the box ​

Each black box carries the section reference of the exemption it relies on, printed in white inside it. A reader of the disclosed document can see not only that something was withheld but on what basis, without having to cross-refer to anything.

The mark is set at the largest size that fits inside the box, down to a floor of 5pt. Two cases produce a plain box instead:

  • The box is too small to carry a legible mark — a redacted phone number inside a line of body text often is. An unreadable mark would be worse than none, because it looks like the basis was recorded when nobody can make it out.
  • No exemption was recorded against the redaction at all.

The editor tells you how many boxes were left unmarked when it finalises. Either way the schedule of redactions is the authoritative record — it lists every redaction with its page and exemption, including the ones too small to mark.

The mark is also added to the document's invisible text layer, so a screen reader announces it and it can be copied and searched for like any other text. It is drawn onto pixels the black fill has already destroyed, so printing it cannot bring back anything underneath.

Finalising is not reversible

The redacted copy has had the redacted text destroyed, by design. For response documents, the finalised copy is what gets attached. For the disclosure log, the original is kept for internal use and only the redacted copy is served publicly — but the redacted copy itself can never be un-redacted.

What is recorded ​

Each redaction is stored with its page, position, exemption, and who applied it. That gives you:

  • A Redacted badge on the file wherever it appears — in the publish dialog and on the public disclosure log entry — so it is always obvious which copy is being served
  • The request timeline, which records every redaction change
  • The stored boxes themselves, which is what lets Edit redaction resume from where you left off
  • A per-file breakdown of the exemptions relied on, available through the API
  • The schedule of redactions in the disclosure pack, which turns those records into the document you send with a partial disclosure

This applies to both routes. Redacting a response document records what was taken out against the document you are left with — the editor uploads the burned-in copy and retires the one it replaced, and the records follow to the new file. Redacting for the disclosure log records it against the original, which is kept.

Disclosure log specifics ​

For a published request, redaction is non-destructive to the original. The original file is left untouched for internal use, so redacting for the disclosure log does not change what was sent to the requester. Use:

  • View redacted copy to check exactly what the public will download
  • Edit redaction to black out more, resuming from your existing boxes
  • Remove redaction to go back to disclosing the original

Limits ​

  • PDFs only.
  • Redacted pages become images with an invisible text layer. File size grows, and page rendering fidelity is that of a 200 DPI render.
  • Text the PDF does not carry as text — a page that is already a scan, for example — cannot be found by either scan, because there is nothing to extract. Redact those pages by hand.

Phanera — FOI, SAR, EIR & Complaints management