A PDF stores text and drawings as separate layers. Putting a black shape on top of a sentence hides it from your eyes but leaves the sentence in the file, where anyone can select it, copy it or search for it. The common mistakes:
Open the PDF, select all the text on a redacted page, copy it and paste it into a plain text editor. Or search the PDF for a word you know you redacted. If it shows up, the redaction failed.
That catches the most common failure but misses others: earlier versions saved inside the file, hidden layers, attachments and metadata such as the author's name or a file path containing a username. The scan above checks for all of them.
Flatten to images (the default) renders every page to a picture and builds a new PDF from those pictures. Nothing survives except what you could see on screen. Use this when the stakes are real.
Keep selectable text is for when the PDF has to stay searchable, like a court filing or a published report. It removes the text under every detected black box for real, strips hidden text, annotations, JavaScript, attachments and metadata, rewrites the file so earlier versions are gone, and gives it a fresh document ID.
Either way, the clean copy is scanned again before you download it.
In 2019, Paul Manafort's lawyers filed a court document with black boxes over text that was still in the file. Reporters copied it out within hours and learned he was accused of sharing campaign polling data. In 2009, the TSA posted a screening procedures manual online with redactions that could be copied out the same way. More cases like these.