How to remove metadata and hidden data from a PDF on Mac
You blank out the client’s name and bank account on page one, save the file, and attach it. Then the recipient presses ⌘I and your full macOS account name is still in the Author field.
Redacting the page does not clean the file. The Info dictionary, the XMP stream, review comments, form values, off-page text, and embedded attachments sit in different parts of the container, and each needs its own check. Here is how to find them on a Mac without Acrobat Pro.
Five places a “redacted” PDF still leaks on macOS
As Adobe’s documentation on redactable data notes, visible page text is only one category of sensitive data inside a PDF. When you prepare a file on a Mac without Acrobat Pro, five hidden layers need separate attention:
| Hidden layer | What it carries | What macOS Preview does | How Inkfish, PineMark, and HerdPrint handle it |
|---|---|---|---|
Document metadata (Info and XMP) | Author name, original title, creating app, modification history | Shows fields in the Inspector (⌘I) and edits keywords, with no button to wipe the Info dictionary or the XMP stream | Inkfish’s “Document metadata” option omits source title, author, subject, keywords, and XMP from the new copy |
| Off-page and covered text | Headers outside the CropBox, invisible OCR layers, text hidden under pasted graphics | Preview’s Crop tool only says it crops a page “to hide content”; text outside the box stays in the file | Inkfish’s “Hidden text and layers” option redacts outside the crop box and rasterizes pages that carry invisible or covered text |
| Comments and annotations | Sticky notes, highlights, reviewer replies, freehand markup | Lists items in the Annotations inspector so you can delete them by hand | Inkfish’s “Comments and annotations” option drops markup annotations when writing the -redacted.pdf copy |
| Form field values | Interactive text boxes, checkboxes, hidden form fields | Lets you edit visible fields by hand while keeping the interactive widgets | Inkfish’s “Form field values” option omits Widget annotations; “Turn pages into images” flattens the page |
| Embedded attachments and bookmarks | Bundled spreadsheets, source documents, e-invoice XML sidecars, table of contents links | No attachment inspector; Preview’s Redact tool leaves contents entries pointing to redacted text | Inkfish redraws pages into a fresh PDF without embedded files; inspect bookmarks by hand before sending |
What you can inspect and delete in macOS Preview (and where it stops)
Before installing anything, use Preview to see what the file is carrying. Open a duplicate and follow Apple’s Inspector guide:
- Press
⌘Ior click the Info button in the toolbar to open the Inspector. - Stay on the first tab, General info, for the Title, Author, PDF Producer, and Content Creator.
- Switch to the Keywords inspector to view or delete keywords.
- Open the rightmost tab, Annotations inspector, for every highlight, note, and shape in one list. Select an entry and press Delete to remove it.
Preview is an inspection tool. You cannot clear the Author or Content Creator strings from General info, and cropping a margin only moves the CropBox rectangle. The text outside it is still in the file.
If you have Poppler installed via Homebrew, you can verify both metadata and embedded files from Terminal in two seconds:
pdfinfo sample-agreement-copy.pdf
pdfdetach -list sample-agreement-copy.pdf
Stripping metadata, hidden layers, and form values in Inkfish
When the recipient needs a clean PDF copy, Inkfish combines visible text redaction with structural cleanup on your Mac. Finding names, SSNs, and account numbers is explained in the Mac PDF redaction guide, and OCR layer checks are in the scanned PDF guide.
To control what gets stripped from the file container:
- Open Inkfish Settings (
⌘,) and switch to the Redaction tab. - Under “Also remove from the safe copy”, review the five checkboxes (all on by default): Document metadata, Hidden text and layers, Comments and annotations, Form field values, and Embedded attachments.
- If you are sharing a completed intake form and the answers must stay readable while the interactive boxes and selectable text layer go away, switch to the Output tab and enable “Turn pages into images”. That rasterizes every page at 3x resolution into a flat image PDF.
- Confirm your redactions in the main window and press
⌘↩to write the new-redacted.pdfcopy.
One exception matters for invoicing. European hybrid invoices such as Germany’s ZUGFeRD and France’s Factur-X store their EN 16931 XML bill inside the PDF as an embedded attachment (see E-invoice formats by country). Strip “Embedded attachments” in Inkfish and that XML payload goes with it. If you are filing invoices rather than redacting them, drop the PDFs and any companion XML into HerdPrint instead; it reads the invoice total and issue date locally for the batch summary.
Image EXIF and layout PDFs
Sometimes the simplest way to avoid hidden PDF layers is to hand over page images or a freshly rendered sheet (see Sharing a contract on Mac for how to choose):
- PineMark outputs a new PNG, JPEG, or WebP, not a copy of the source. Instead of carrying over opaque XMP blocks, maker notes, or camera thumbnails, it rebuilds an allowlisted metadata dictionary with pixel dimensions, orientation, DPI, and basic exposure tags only. In the Export sheet, “Remove location data” is on by default; an author name is written only when you enable “Write author information” and fill it in.
- HerdPrint’s “Export Layout PDF…” draws the arranged pages, watermark, group marks, and summary sheet into a new PDF whose only metadata entry is the creator app name. Source comments, form widgets, and author tags stay behind. One boundary: black print masks reach paper only and are excluded from exported PDFs and images (see Watermark and mask a printout on a Mac). For an email attachment, make a separate redacted copy.
Before you hit send, check the filename in Finder so it does not repeat the name or ID number you just removed, then press ⌘I on the final attachment to confirm the Author field and Annotations list are clean.
Common questions
Does cropping a PDF in macOS Preview delete the cropped-out text?
No. Preview’s Crop tool moves the visible CropBox and hides those margins on screen, but the text and vector paths stay in the file. Reset the crop box or run a command-line extractor and the header comes right back. Use the Redact tool in the Markup toolbar (the icon that draws a box with diagonal cross lines) or Inkfish’s “Hidden text and layers” cleanup instead.
Does “Save as PDF” in the Mac print dialog remove all hidden data?
It flattens interactive form fields and drops sticky-note annotations, which helps on simple forms. However, the macOS print system still writes a new metadata dictionary (often filling in the document title or your Mac’s user name), and text that was merely covered by a black rectangle annotation can remain selectable in the printed PDF. Always reopen the output file, test ⌘A copy-paste, and check ⌘I before sharing.
