Security

Black out an account number in a PDF statement properly

Why a black rectangle is not redaction, and a practical method to redact, re-open and test a one-page PDF statement by trying to select the text.

Editorial illustration for Black out an account number in a PDF statement properly

To black out an account number properly, remove the text itself rather than covering it. Use a redaction tool, or turn the page into a picture, then re-open the result and try to select and search the number. If you can still highlight it or find it with search, the number is still in the file.

A PDF is made of layers. A rectangle you draw is a new layer sitting on top of the text. The text is still there, hidden from view but not from copy and paste. The method below deals with that.

What is the difference between a cover-up and redaction?

MethodWhat happens to the textSafe?
Drawing a black box or highlightText stays underneathNo
Typing over it with a text boxOriginal text stays underneathNo
True redaction in a PDF editorText is removed from the page contentYes, after you test
Turning the page into an imageText becomes pixels, no longer selectable textYes, after you test
Cropping the pageCropped area may still exist in the fileNot reliable

How do you redact a one-page statement step by step?

Use a copy of the statement. Never work on the only original. Say the page has your account number printed in two places: in the header and in a line above the table.

  1. Copy the PDF and name the copy with the word redacted, so you do not send the wrong one
  2. Open the copy in a desktop PDF editor that has a redaction or 'remove sensitive content' option
  3. Mark each place the number appears, including the header and any footer
  4. Apply the redaction so the text is permanently removed, and save under a new name
  5. Close the file, then open the saved version in a different PDF viewer
  6. Press the select-all shortcut and paste into a notepad to see what text comes out
  7. Use the search box to look for the first digits of the number

If the notepad shows the number, or search finds it, the redaction did not work.

What if there is no redaction feature?

Turn the page into a picture. Take a screenshot of the page, or use a print option that saves the page as an image, then make the black box on the image with a markup or paint tool, and save a new PDF from the image. Because a picture has no text layer, nothing is hidden underneath. The trade-off is that the file is no longer searchable and may look less sharp.

Why is the test step the important one?

Different tools behave differently, and the label on a button does not tell you what it did. Printing to a PDF, for example, may or may not drop the original text depending on how the tool handles the page. So do not trust the method, trust the test. If select-and-search still finds the number, move to the picture method.

What about online redaction sites?

Avoid uploading a statement to a random website to redact it. You would be handing the unredacted file to a stranger in order to protect it from strangers. Use software on your own device, and keep the original out of sight.

Does your tracker need the redacted copy?

No. For importing into a tracker, use the original or a CSV or Excel version. In SpendixAI the redacted copy would be a poor input anyway, since you want the dates, amounts and narrations intact and you pick the account yourself. Keep the redacted copy for sharing with other people only.

Before you send

  • Select-all and paste shows no account number
  • Search finds none of the hidden digits
  • File name and properties are clean
  • The original is stored safely and not in the same folder as the shareable copy
SPENDIXAI JOURNAL

Useful ideas start with a clearer picture of your own spending.

Explore your reports