About this tool
Redaction means covering private information, such as names or numbers, so nobody can read it. This tool blacks out text you choose, found by the words you type, by built-in patterns, or by boxes you mark. The affected pages are turned into pictures, so the hidden text is truly removed and cannot be copied. This cannot be undone, so keep your original.
For example, you black out every customer name and phone number in a document before sharing it with a partner.
How to use it
- Choose this tool.
- Add your PDF.
- Confirm that you understand the redaction is permanent.
- Type the words or phrases to black out, or choose built-in patterns, or mark boxes.
- Press Generate, then download the redacted PDF.
What you get back
You get a new PDF where the chosen content is covered with black boxes and removed from the file. Check the pages before you share it.
GOOD TO KNOW
If nothing matches the request FAILS (400) instead of returning an unredacted document. At most 500 targets and 50 redacted pages per request.
TEST IT LIVE
Try Redact in the Studio
One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Family
PDFs
Plan
Free
Method
POST
Endpoint
/v1/pdfs/redact
Tool ID
pdfs.redact
Authentication
API key
Accepts
PDF
Background jobs
Yes
Usage group
Pdf
For developers
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/pdfs/redact" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'file=@document.pdf' \
-F 'permanent=true' \
-F 'dpi=150' \
-F 'padding=0'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.pdfs.redact({
"file": 'document.pdf',
"permanent": true,
"dpi": 150,
"padding": 0
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->pdfs()->redact([
'file' => 'document.pdf',
'permanent' => true,
'dpi' => 150,
'padding' => 0,
]);
echo $result->requestId;Documentation
Guides that use this tool
More in PDFs
