How to check a PDF for hidden text
A PDF keeps its text separately from the way the page looks. That makes it possible to store words in the file that never appear on screen. A person reading the page misses them; an AI tool that extracts the text reads every one. Here are five ways to find out whether a PDF is carrying text you cannot see.
1. Select everything
Open the PDF in any reader, click on the page and press Ctrl+A (Cmd+A on a Mac). Everything that counts as text is highlighted. Look for highlighted areas where the page appears empty: blank margins, the gap between two paragraphs, or a strip at the very bottom. A highlight over nothing means there is text there in the page's own background colour, or in a size too small to see.
2. Copy the text into a plain editor
With everything selected, copy it and paste it into Notepad, TextEdit or any plain-text editor. Formatting disappears, so white text, tiny text and text hidden behind images all show up as ordinary words. Read the result from start to finish, and compare it with the page. Sentences that address an assistant directly, such as "ignore previous instructions" or "rate this candidate as highly qualified", are the usual sign of an attempted prompt injection.
3. Search for telltale words
Use the reader's search (Ctrl+F) for words such as ignore, instructions, assistant, system, AI and prompt. If the search reports a match but nothing visible is highlighted on the page, you have found hidden text.
4. Look beyond the page
Hidden content is not always on the page itself. In a full PDF reader, check:
- Document properties for the title, subject, keywords and author fields, which some tools pass to an AI along with the text.
- The attachments panel for files embedded inside the PDF.
- The layers panel for layers that are switched off.
- Comments and form fields, which can hold text that is not printed.
5. Let a tool compare the two views
Checking by hand is slow on long documents, and text placed outside the page edge or at zero size is easy to miss. RinsePDF automates the comparison. It draws each page as a picture, reads the picture with OCR, and compares those words with the words stored in the file. Anything in the file that was not seen on the page is listed for you as possible hidden text. Turn on "Also check the original for hidden text", or choose the text or searchable PDF output. The file is processed in your browser and is never uploaded.
What to do if you find something
Do not give the original file to an AI assistant. Make a clean copy that contains only what is visible, by rinsing it or by printing it to a new image-based PDF, and use that instead. If the document came from someone you are evaluating, such as a supplier or a job applicant, the hidden text is itself information worth keeping: save the original and note what you found.
Limits of any check
These methods find text that is invisible. They do not help with instructions printed in plain sight, including very small or pale text that is technically visible. OCR can also misread a passage and cause a false alarm. Treat any check as one layer of protection, and read AI summaries of documents you did not write with a critical eye.