

Redact PDFs with AI: Quick Tips for Secure Document Sharing
You need to send a document, but it contains a private email address or an identifier the recipient should not see. The goal is to remove the selected content from the final file—and confirm that the right information remains.
Use a preview-first redaction process: identify the targets, review the marked matches, finalize, then inspect the downloaded PDF. A preview is a review copy. It is not the final redacted document.
Be specific about what should be removed
For a known value, supply the exact text. For a category such as email addresses, ask for a pattern-based preview and review the matches. Broad requests such as “remove anything sensitive” leave too much open to interpretation.
| Request | Why it helps |
|---|---|
| “Preview redactions for every occurrence of alex.test@example.invalid.” | Names one exact fictional value. |
| “Preview all email-address matches and show me what was selected.” | Makes a category request reviewable. |
| “Keep the company name and payment terms unchanged.” | Identifies important content that should remain. |
All example names and values here are fictional.
Use this process in AI Studio
Upload the document and request a preview
Start with a copy you are authorized to process. Keep the original separate from the preview and final output.
Prompt to copy Preview redactions for every occurrence of the fictional email alex.test@example.invalid and the fictional identifier 123-45-6789 in this PDF. Keep the client name, amounts and payment terms unchanged. Return a marked preview for me to review. Do not finalize the redactions yet.Review every marked page
Check all occurrences, including headers, footers and repeated sections. Confirm that the selected areas do not remove nearby text you need.
Approve the matches and finalize
When the preview is correct, explicitly request the final redacted PDF. Download that file and give it a distinct name so it cannot be confused with the original or preview.
Inspect the final output before distribution
Open the downloaded file, search for the target strings and try copying text from the affected areas. Check the preserved content too. More sensitive documents may need a separate security review.
Information to remove
Contact: alex.test@example.invalid
Identifier: 123-45-6789
Payment terms: Net 30 days
Keep the useful context
Contact: [removed]
Identifier: [removed]
Payment terms: Net 30 days
This is a text illustration of the intended change. The redaction tool’s actual PDF appearance may differ.
Watch redaction as part of a complete MCP task
If you already work in a supported AI assistant, connect pdfAssistant and ask it to perform the PDF operations there. The demo combines existing PDFs, redacts fictional values, adds a watermark and protects the result with a password.
The synthetic demo explicitly skips user preview approval. For your own documents, use the review-first prompt above. Captioned, silent demonstration recorded with synthetic files using the development MCP connector.
A sharing check that covers more than the redaction box
- Right file: you are sharing the finalized output, not the marked preview.
- Right matches: the target information is removed everywhere it appears.
- Useful content remains: names, totals and clauses you intended to keep are intact.
- Other surfaces reviewed: consider metadata, attachments, comments and images separately when they may contain private information.
For recurring documents, saved Workflows can standardize processing. Test on a representative file and review the outputs; an automated run should not be assumed to pause for preview approval unless you designed and verified that behavior.
See the full PDF redaction guide for the broader tool overview.
Questions before you start
Is covering text with a dark rectangle enough?
A visual overlay may leave the underlying content in the file. Use a redaction operation that removes the selected content, finalize it and inspect the result.
Does text redaction also remove metadata and attachments?
Do not assume so. Treat those as separate surfaces that need their own inspection and, where supported, removal process.
Does using redaction make a document compliant?
A tool operation alone does not establish compliance with your organization’s rules or a legal requirement. Review the document and follow the applicable handling process.




