One kind you meet often is the invisible text layer that OCR software lays over a scan, so the page can be searched. Others are text drawn in white or in the invisible rendering mode, text covered by an image or a box, text placed outside the visible page, a hidden layer, and words that are not on the page at all: bookmarks, link addresses, comments, form fields, accessibility tags and the document’s properties. You can find most of it on a Mac with Preview’s search and selection, the Inspector, and a free command-line tool. Removing it takes a redaction tool that also cleans hidden data, a fresh export from the source or, for an OCR layer, turning the pages back into plain pictures.
Where can text hide in a PDF?
- The OCR layer of a scan. A scanned page is a picture. OCR software adds the recognized words on top of it as invisible text, so the page can be searched and copied. The PDF standard defines this as a text rendering mode: “Neither fill nor stroke text (invisible).” See editing text in a scanned PDF.
- Text drawn to be unseen. White text on a white page, text at a tiny size, or text under an image or a filled box. Adobe’s list of what Acrobat Pro can redact describes it as “Text that is transparent, covered by other content, or matches the background color”.
- Text outside the visible page. A page has a visible area, its crop box; text placed beyond it is in the file but not shown or printed.
- Hidden layers. A PDF can group content into optional content groups that a viewer shows or hides.
- Text that is not on the page at all. Bookmarks (the outline), the web and email addresses behind links, comments, form field values, file attachments, the accessibility text of a tagged PDF, and the document’s properties: title, author, subject and keywords.
How do I find hidden text on a Mac?
Work through these checks in order, from a single search to a full extract:
-
Search for it. In Preview, press ⌘F and type a word you suspect is there. A match where nothing is drawn, or on a page that looks like a photo, is invisible or OCR text.
-
Select everything. Choose Tools > Text Selection, then Edit > Select All. Highlights over blank space, or over a picture, show selectable text that is not visibly drawn.
-
Extract all the text. Poppler’s free
pdftotext, installed withbrew install poppler, prints the text of the pages, including invisible and covered text: in a test on October 12, 2026, it printed a line drawn invisibly, a line drawn in white and a line under a filled box along with the one visible line. Compare its output with what you see:pdftotext -layout document.pdf - | less -
Read the properties. In Preview, the Inspector shows the document’s information; Apple’s guide says it shows details “such as file size, the author name, and the image resolution”. Run
pdfinfo document.pdffor the full list, including the producer and the dates. -
Open the sidebar. Preview’s sidebar shows the bookmarks, which it calls the table of contents, and any comments.
-
Ask the editor. In PDF Textfix, View > Issues (⌥⌘I) counts the lines of invisible text on the pages you have viewed, “Text that is not drawn, such as the OCR layer of a scan.”, and such a line shows a lock with the reason: “This is hidden text, such as the text layer of a scan, so it cannot be edited.” The pane also counts lines in content drawn in several places, such as a block that several pages share, where one edit changes every copy.
How do I make hidden text visible?
Bring it out where you can read it, without changing the file:
- Select and copy it. With Tools > Text Selection, then Edit > Select All, Preview highlights the text it can select, invisible and white text included. Copy it (⌘C) and paste it into TextEdit, where it shows in plain black.
- Print it as text.
pdftotext -layout document.pdf -writes every line in its place on the page, whatever is drawn over it, as in the test above. - Read the parts that are not on the page. The sidebar shows bookmarks and comments, and the Inspector and
pdfinfoshow the properties.
How do I remove the OCR layer from a PDF?
An OCR layer is text, so removing it means keeping the picture of each page and dropping the text. Check the result with pdftotext whichever route you take.
-
Turn the pages back into pictures. Poppler’s
pdftoppmrenders each page as an image, thesipstool that comes with macOS turns each image into a one-page PDF, and Poppler’spdfunitejoins them:pdftoppm -r 300 -png scan.pdf page for f in page-*.png; do sips -s format pdf "$f" --out "${f%.png}.pdf"; done pdfunite page-*.pdf scan-without-text.pdfIn a test on October 12, 2026, on a two-page test file with a picture and an invisible text layer on each page,
pdftotextprinted both text lines before and nothing after, andpdffontslisted no font. The new file has no text, links or bookmarks at all, so it can no longer be searched, and it can be larger than the original. -
Use Ghostscript’s text filter. Ghostscript, a free command-line PDF converter, has a switch that leaves text out of the file it writes. Its documentation: “If set, this will ignore all text in the input”. It removes visible text too, so it suits a file in which every page is a scan.
-
Scan the paper again without OCR. If you have the original, scan it with text recognition turned off in the scanner’s software.
PDF Textfix does not remove an OCR layer: it locks invisible text and leaves it as it was.
How do I remove hidden text from a PDF?
Use a tool built to remove it, then check again with the steps above.
- A redaction tool that also cleans hidden data. Adobe separates the two jobs: “Redaction removes only visible text and graphics. Hidden data, such as metadata or embedded content, must be sanitized separately.” Preview has a redaction tool as well. Redacting versus deleting text quotes what each tool removes and what it leaves, and why a cover-up or an edit does not remove text the way a redaction tool does.
- A fresh export from the source. If you made the document, delete the hidden text in the original file and export a new PDF. That gives you a file without the old OCR layer, comments or history.
- For an OCR layer, the routes in the section above.
Does editing a PDF remove hidden text?
Not the hidden text you leave alone. PDF Textfix locks invisible text, such as the OCR layer of a scan; white text, covered text and text outside the page are ordinary lines to it. When you edit a visible line and save, Save writes the whole file again and removes the lines you replaced from the pages, keeping no earlier version of them. But everything you did not edit is copied as it was, unless the file was damaged (the app tells you when it repaired one), and it can hold the same words: other text, links and the addresses they open, bookmarks, comments, form fields, the accessibility text of a tagged file, images and the file’s metadata. Fonts keep the shapes of every character they held. PDF Textfix is not a redaction tool; what saving does to your PDF shows the bytes a save writes.
Questions people ask about hidden text in PDFs
Why is text missing when I open a PDF?
One cause is a font the file does not embed and the computer cannot replace. Adobe’s help on font handling: “Fonts from some languages or with unknown encodings cannot be substituted. In such cases, the text appears as bullets in the file.” Text can also sit in a layer the viewer is set to hide, or outside the visible page. Font not embedded in PDF covers the font case.
Can someone else read hidden text in a PDF I send?
Yes. Anyone can search, select or extract it with free tools. Treat every hidden word as readable.
Does printing to a new PDF remove hidden text?
Not reliably. In a test on October 12, 2026, the test page above was drawn again by macOS’s own PDF engine, Quartz, and pdftotext still printed the invisible line, the white line and the covered line from the new file. Apple’s Preview guide says: “To save a PDF and flatten annotations (so that they can’t be edited), choose File > Print, then select Save as PDF.” Comments then become part of the page rather than leaving it. Check the result with pdftotext before you trust it.