Redact PDF
Operator: Abdulla Al Fahad. How tools are built and checked
Redact PDF removes what you mark, not just hides it. You point at the words or areas that must not be seen, either by drawing boxes on the pages or by typing a word and letting the tool find it, and every page that carries a mark is rebuilt as a picture of itself with those areas painted over. The text that sat underneath is not in the new file at all, so there is nothing for a reader to select, copy or dig out of the page's content later.
That is the difference from the usual way people try this. A black rectangle drawn in a PDF editor, or a white-out in Edit PDF, is an extra shape laid over the page; the original characters are still stored beneath it and come back with a select-all and a paste. Here the covered pages are rasterised, the file is saved without its bookmarks, attachments and document properties, and the pages you did not mark are left exactly as they were.
Key features
- Find text with Mark all, case-insensitive, matching a typed phrase across words and across pieces of text that the PDF stored separately on one line.
- Three preset searches, Email addresses, Phone numbers and Long numbers, for details that have a shape rather than a spelling.
- A Box tool for drawing areas by hand, a running count such as 3 areas marked, and Clear all to start again.
- Resolution of redacted pages at 150 DPI, 200 DPI (recommended) or 300 DPI (sharpest, larger file), and a Box colour of Black or White.
- Document properties, metadata, bookmarks, attachments and the form are dropped on the way out, and unmarked pages are left as they were.
Why covering text is not redacting it
A PDF page normally stores its text as characters with positions. Redact PDF renders each marked page with pdf.js at the resolution you choose (150, 200 or 300 DPI), fills every marked box on that bitmap, compresses it as a JPEG at quality 0.9 and draws it full-bleed on a new page of the same visible size. Each box is filled one pixel larger than you drew it on every side, so the edge of a letter cannot peek out. A page that was rotated or carries a user unit keeps the same look and scale; the boxes you drew appear in the same visual place.
Everything outside the marked pages is handled on purpose. Unmarked pages are copied across unchanged, apart from file-attachment, sound, movie, screen and rich-media annotations, which are dropped because they can carry embedded files. The document properties (title, author and the rest of the Info entry), the XMP metadata, the bookmarks, the named destinations and embedded-file list, and the interactive form are all left behind, since any of them can repeat a name or number you have just blacked out. Before a marked page is replaced, its own links and fields are emptied so they cannot pull the old content back into the output.
Searching works on the text layer. When a PDF opens, the panel reads every page's text, joins the pieces that sit on one line, and works out a box for each character. A typed query is matched as literal text, ignoring upper and lower case, and any run of spaces in the query matches any run of white space in the page, so jane doe finds Jane Doe even when the PDF stores a double space. Each match is boxed with two points of padding. The three ready-made searches are different: they are patterns, not literal text. Email addresses finds anything shaped like name@host.tld, Phone numbers finds a run of at least nine characters, made of digits, spaces, brackets, dots and hyphens, that starts with a digit or a plus sign and ends with a digit, and Long numbers finds any whole number of six digits or more.
How it works
On opening the file, the editor draws the pages for you to mark on and, in the background, reads the text of every page. Boxes you draw and boxes found by search end up in the same list of marked areas; each one is stored as a page number and a rectangle in points measured from the top-left of the visible page.
The search index of your document's text is built in the tab, and the boxes you mark never leave it. On export, the tool groups the boxes by page and renders each marked page once, fills the boxes, and saves the bitmap as a JPEG. It then builds a fresh PDF: unmarked pages are copied in, each marked page is replaced by its picture, and any leftover hidden copy of a page that links or annotations could have dragged along is detached and discarded. If a page cannot be drawn, nothing is redacted and no file is produced, so you never get a half-redacted download. The result is named after the original with -redacted added, for example statement-redacted.pdf.
Common use cases
- A solicitor releases a witness statement to the other side with the witness's home address and telephone number removed, and needs the page to stay shareable as a plain PDF.
- A landlord forwards a bank statement to a letting agent as proof of income, hiding the account number and every transaction that is not rent.
- A local council answers a freedom-of-information request by publishing a report with the names of junior staff and two email addresses taken out.
- A job applicant uploads a diploma to a portal that asks for the document but not the student ID number printed on it.
- A finance team shares an invoice with a new auditor, blanking the bank details that appear on pages 1 and 4 and leaving the other six pages alone.
How to use this tool
- Load the PDF. If it has text, the Find text box is ready within a moment; if the panel says there is no text to search, you are working on a scan and will draw boxes.
- Type a word or phrase and press Mark all, or press one of the preset buttons, then use the Box tool to drag a rectangle over anything search cannot find. The counter shows how many areas are marked.
- Under Output, choose the Resolution of redacted pages and the Box colour, then read the sentence that explains what will happen to the pages.
- Export, open the redacted file, try to select text under every box, and run it through PDF to Text if you want proof that the words are gone.
Example
Settings for a 2-page bank letter (statement.pdf, text-based)
Find text: 12345678 -> Mark all
Presets: Email addresses
Box tool: one box drawn over a signature on page 2
Resolution of redacted pages: 200 DPI (recommended)
Box colour: BlackWhat the panel shows, and the file you get
Marked 1 match for “12345678”.
Marked 1 email address.
3 areas marked
statement-redacted.pdf
Pages 1 and 2 rebuilt as images, boxes filled in black
Redacted pages are now images, so their text can no longer be selected or searched. Bookmarks, attachments and document properties were removed as well.Tips for best results
- Start with Find text for names and reference numbers, then use the Box tool to pick up what a search cannot know about: a signature, a photograph, a handwritten note in the margin.
- Press Mark all, read the feedback line under the search box, and look at the pages. A search for Smith will also box the Smith in Smithfield Road, because the tool matches literal text, so remove any box you did not intend before exporting.
- Keep 200 DPI (recommended) for ordinary documents. Choose 300 DPI (sharpest, larger file) when redacted pages contain small print or will be printed; choose 150 DPI when a long run of marked pages makes the file too heavy to email.
- Black is the familiar choice and shows plainly that something was removed; White leaves a clean gap, which suits a page where the blank space should not draw the eye.
- Finish any other edits first. Every run starts from the file you loaded, so make your changes in Edit PDF, save, and then redact that final version.
Common pitfalls
Redacted pages become images. Their text can no longer be selected or searched, and that is exactly what makes the removal real. If you will need to quote from a marked page, keep an unredacted copy for yourself.
Only pages with a mark are rasterised. Pages without marks stay as they were, with their live text. If a name appears on page 6 and you only boxed it on page 2, page 6 still has it; run a search and check how many areas it marked rather than assuming one pass catches everything.
Search finds text only in text-based PDFs. A scan is a picture of a page with no characters to look up, so Find text is switched off and the panel says so. On a scan, draw the boxes by hand.
Search matches literal text, so spelling differences defeat it: Mohammed will not find Mohamed, and a number written 1234 5678 on one page and 12345678 on another needs two searches. The presets are looser than typed text but still guess: Phone numbers will also box a long reference that looks like a phone number, and Long numbers misses a number with spaces in it.
A redacted page is a JPEG, so a heavily marked 300 DPI Letter or A4 document can be much larger than the original. Anything that was drawn as a picture on a marked page, such as a logo or stamp, is flattened with it.
The tool cannot see the content of images. A name printed inside a scanned attachment or a photograph of a document needs its own box, and after exporting you should open the result and check it before it goes anywhere.
Common errors and how to fix them
- Mark at least one area to redact.
- Nothing is marked, so there is nothing to remove. Draw a box with the Box tool or use Mark all or a preset, then export again. A box with no width or height is ignored.
- This PDF has no text to search, so mark areas by drawing boxes on the pages.
- The file is a scan or consists of images of pages, so there are no characters to find. The search box and preset buttons are disabled; draw each box by hand.
- Page 3 could not be drawn as an image, so nothing was redacted. Try a lower resolution.
- The page number in the message is the one that failed. A very large page at 300 DPI can need more memory than the device has; switch Resolution of redacted pages to 200 DPI or 150 DPI and export again.
- This PDF is password-protected. Open it with Unlock PDF first, then try again.
- Redact PDF has to draw each marked page as an image, and that is impossible until the file is opened, so unlock it first in Unlock PDF. If the redacted copy needs a password afterwards, add one with Protect PDF.
Best practices
- Treat the export as a draft until you have checked it: scroll every page, try to select text under each box, and search the result for the words you meant to remove.
- Work from a copy and keep the original. Redaction is one-way for the pages it touches, and the text of those pages cannot be recovered from the output.
- Redact first and apply a password afterwards with Protect PDF if the file will travel; do it in that order, because a protected file has to be unlocked before it can be redacted.
Why a black box in an editor is not redaction
In most editors, drawing a filled rectangle adds a new object to the page. The paragraph beneath it is untouched: its characters are still in the content stream, still selectable, still found by search, and a reader can paste them into a notepad in a few seconds. Many documents have been released this way and read back by journalists. Edit PDF's white-out works on the same principle, which is fine for a tidy-up before printing but not for anything confidential.
Redact PDF changes the storage rather than the look. After export, a marked page holds a single image and no text instructions, so there is no hidden layer to recover. The cost is real and visible: those pages are pictures, which makes them heavier, softer to read when zoomed and impossible to search. That trade is why the tool leaves unmarked pages alone and lets you decide, page by page, what gets flattened.
Frequently asked questions
Can anyone recover the text under a box?
Not from the PDF structure, because that text is not in the file; the marked page holds only a picture with the area painted over. What you can still leak is what you did not mark, such as the same name on another page or in an image, so check the result before sending it.
Why can I not select text on some pages of the output?
Those are the pages you marked. Each one was replaced by an image of itself, so its text can no longer be selected or searched. The pages without marks keep their text.
Does the search handle capital letters, accents or spelling variations?
Capital letters do not matter, so SMITH finds Smith. Beyond that the match is literal: an accented letter will not match its plain version, and a different spelling or a name split across two lines will not be found. Search for each variant, or box it by hand.
Can I redact a scanned PDF?
Yes, but only by drawing boxes yourself, because a scan has no text for the search to read. The boxes are filled on the scan's own image, so the covered pixels are replaced in the output.