How-to guideNov 13, 2026by Docurensic Team6 min read

How to Find Hidden Text in a PDF

A PDF can carry text nobody reading it will ever see: white on white, under a box, or switched off. How to find it in thirty seconds, and how to tell the innocent kind from the kind written for a machine.

How to Find Hidden Text in a PDF
In this guide
  1. Key takeaways
  2. Why a PDF can say things you can't see
  3. How to find it
  4. When it's innocent
  5. The uses worth worrying about
  6. What to do when you find some
  7. Frequently asked questions

Picture a recruiter with a résumé that keeps coming out on top. Her screening software ranks it first for three different roles, which is odd, because on the page it is a perfectly average two-pager. She copies the whole thing into Notepad to send a snippet to a colleague, and that is when she sees it: under the last line of the visible text sits a block of about two hundred keywords, lifted straight from the job adverts. On the page, that block is white.

That is hidden text, and it has stopped being a résumé trick. It turns up in invoices, in contracts, in academic papers, and increasingly in documents written to be read by software rather than by people.

Key takeaways

Why a PDF can say things you can't see

People think of a PDF as a picture of a page. It isn't. It is a set of instructions: put these letters here, in this font, at this size, in this colour. Nothing in the format requires that the result be readable. Text can be drawn in white. It can be drawn at one point high. It can be placed three inches off the edge of the paper. It can be drawn and then have a rectangle painted over it.

Your eyes see the finished painting. Search engines, screening tools, accounting systems and AI assistants do not look at the painting. They read the instructions.

Diagram: four ways text can be hidden in a PDF
Invisible on the page, plainly present in the file

How to find it

Copy and paste. Press Ctrl+A (Cmd+A on a Mac), copy, and paste into Notepad or TextEdit in plain-text mode. Read what arrived. Anything that wasn't on the page is the thing you were looking for. This catches white text, tiny text and most off-page text, and it takes less time than reading this paragraph did.

Drag-select the blank areas. Click and drag across margins and gaps between paragraphs. Hidden text highlights like any other text, so a block of selection appearing in an empty margin is hard to miss.

Extract the text with a tool that doesn't render. Command-line extractors such as pdftotext (part of the free Poppler utilities) write out every piece of text in the file and ignore how it looks. If you check documents often, this is quicker than the clipboard and it doesn't get tired.

Look under things. Text covered by a box or an image often survives copy and paste, which is exactly how badly redacted documents leak. We wrote about that failure on its own in why a black rectangle is not redaction.

Check the layers. PDFs can carry optional layers that are switched off by default. Most free viewers don't show you the layer list. Acrobat does, and so does our free PDF X-Ray, which lists text that is invisible, clipped, covered, or sitting on a layer that isn't being drawn.

When it's innocent

Most invisible text in the world is there for a good reason. When you scan a paper document and the scanner runs character recognition, it stores what it read as an invisible layer on top of the image. That is why you can search a scanned contract. It is supposed to be invisible.

Accessibility tags, form field defaults and the leftovers of a careless export also produce text nobody sees. None of that is fraud.

So the question to ask is never "is there hidden text?" It is "does the hidden text match the page?" An invisible layer that says the same thing as the image underneath is a searchable scan. An invisible layer that says something else is a message addressed to a machine.

The uses worth worrying about

Gaming a screen. Keyword stuffing in résumés and tender responses, to climb an automated ranking.

Talking to an AI reviewer. This is the new one, and it is growing fast. If a document is going to be summarised or scored by a language model, hidden instructions can be planted in it: lines telling the model to rate the submission highly, or to leave something out of the summary. The reader sees a normal document. The model sees the normal document plus a note addressed to it. If your team pastes supplier documents, CVs or papers into an assistant, this is now your problem.

Two versions of one fact. An invoice whose visible total is one figure while the text layer, the one your accounts software reads, carries another. Or a scan whose invisible layer was edited so that a search for a clause finds wording that isn't in the image.

Failed concealment. The box drawn over a name. The earlier figure left underneath the new one. This is the accidental kind, and it is often the most revealing. A PDF that has been edited frequently still contains what it said before.

What to do when you find some

Don't delete it, and don't "clean" the file. Keep the original exactly as you received it and work on a copy. Note what the hidden text says and where it sits. Then ask the dull question first: could a scanner or an export have produced this? If the hidden text is a faithful copy of the page, almost certainly yes.

If it isn't, you have learned something specific about the sender's intent, which is more than most document checks ever give you. A document carrying one message for people and another for software did not get that way by accident.

Frequently asked questions

Is hidden text in a PDF illegal?

Not in itself. Scanners and accessibility tools create invisible text every day. Using it to deceive, for example to misstate an amount or to manipulate an automated decision, can amount to fraud or a breach of the rules you submitted under, and that depends on where you are and what the document was for.

Will printing to PDF remove hidden text?

Usually, yes. Printing redraws the page from what is visible and writes a new file, so text that wasn't drawn generally doesn't make it across. Covered text is the exception worth testing: if it was still selectable before printing, check again afterwards.

Can AI tools read hidden text?

Yes. Any tool that extracts a document's text sees all of it, visible or not, unless it was built to compare the text against the rendered page. Assume an assistant reads everything in the file.

Does hidden text mean the document is forged?

No. It means the file contains more than the page shows. Whether that matters depends on what the extra text says and how it got there.

Check the PDF you are holding

Run a free PDF X-Ray in your browser — it recovers text from the file’s earlier revisions, so you can see what a value was before it was changed. No account needed.

Open the free PDF X-Ray

Keep reading

How-to guideNov 19, 20266 min

How to Tell if an Image Is AI-Generated

There is no single test, and detector scores are guesses. A ranked set of checks that still work, from content credentials to the physics a generator gets wrong, and the question that matters more than 'is it AI?'

ComparisonSep 09, 20268 min

What the Standards Prove: PAdES, eIDAS, C2PA and PDF/A

Only one of these detects a change to a document. What each standard actually asserts, where signatures stop covering the file, and why a missing set of content credentials proves nothing at all.