Press "Enter" to skip to content

Need to Redact a PDF on Linux? Try Censor

Follow this walkthrough to set up Censor from Flathub and use it to remove sensitive information from your PDFs.

The FOSS Force Linux App of the Week — Censor

Source: Bazaar

Thank goodness for Censor!

I can’t tell you how many times I’ve needed to send a PDF to someone that contained information they shouldn’t see. Prior to discovering Censor, I would open the PDF, take a screenshot of it, redact the necessary bits, and export the file back to PDF. It was cumbersome, but it worked.

I’ve also tried the LibreOffice redaction feature, but it’s far too complex for the average user. I would go so far as to say that its redaction tool is kind of a bust. When you open a document in the LibreOffice redaction tool, it opens it in LibreOffice Draw, where you can then use the drawing tools for redaction. Given that’s very much like how I was redacting text in GIMP, no thanks.

I needed a much more efficient method of redacting text from PDFs. I found it in Censor, an open source Flatpak app under active development that’s released under the GNU Affero General Public License v3.0.

Defining Censor

According to the app’s developer, “Censor is a PDF document redaction tool. It permanently removes text and images in redacted areas and can draw rectangles over them. It uses the MuPDF library with its Python bindings from the PyMuPDF module.”

Before you grow concerned about that jargon, Censor is a GUI app that is so easy to use that anyone could get up to speed with little to no help.

If you’re thinking, “I don’t need an app to redact documents because I haven’t needed to redact a document” — you might want to add to that the word, “Yet.” I thought the same thing until it was time to redact something. After that, it seemed I was regularly redacting documents.

Installing Censor

According to what I’ve seen on the official site, Censor is only installable via Flathub. If you have a Linux distribution that doesn’t include Flatpak by default, then you’ll need to install Flatpak, which is easy and covered in the article “How to Make Your Linux System Flatpak Ready.”

Once you have Flatpak installed, you can then install Censor.

There are two ways to install Censor. The easiest method requires that your desktop app store has Flatpak support built in. If that’s the case, you can download the Censor .flatpakref from Flathub. When the download starts, you might be asked if you want to open it with the default package manager on your system (on Pop!_OS, downloading the link prompts me if I want to open the file with Bazaar). If so, do that and then click Install to finish the process.

Nextcloud 7/7/25 336px rectangle 05.

If you don’t have a package manager with built-in support for Flatpack, you can install Censor with the command:

flatpak install flathub page.codeberg.censor.Censor

When the installation completes, you’re ready to use the app.

Using Censor

If you don’t find the Censor launcher in your desktop menu, log out and log back in and it should appear. Click the launcher to open the app.

The Censor app is very basic-looking, which is fine because it only has one trick up its sleeve: redacting PDFs.

The Censor window is bare bones. From the app’s main (and only) window, click Open Document.

screenshot

Using your distribution’s default file picker, navigate to the PDF you want to redact and either double-click it or click Open.

You should now see the PDF open on your desktop, but it’ll seem like there aren’t any available tools to use.

Fret not.

Find a section of the PDF you want to redact and, using your cursor, select the section. Once you’ve selected the section, you’ll see a transparent black redaction box over the text. Although you can view the text through the box, don’t worry; once you save the redacted document, that semi-transparent redaction turns solid.

One thing to keep in mind is that you cannot resize or undo a box. Once it’s there, the only way to get rid of it is to close the document without saving, which means you’ll have to start over.

After you’ve redacted everything necessary in the document, click Save As to save the PDF with the redactions intact. After saving the redacted PDF, you’ll see that those semi-transparent sections are now solid black and cannot be viewed.

Screenshot.

And that’s all there is to redacting PDFs in Linux. I’ve used this tool several times and it has never failed me.

Things I like about Censor…

Things I don’t like about Censor…

  • Does what it says it does
  • Redactions cannot be undone in the saved PDF (so they're secure)
  • No undo feature
  • Can't resize redaction boxes

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *