Permanent PDF Redaction
Permanently cover selected rectangular areas by rebuilding rasterized PDF pages
One rule per line: page, x%, y%, width%, height%. Coordinates start at the top-left.
Permanent PDF Redaction — what it does
Permanently cover rectangular areas of a PDF by rebuilding the affected pages as images, so the hidden content is not retained as selectable text underneath. Each rule specifies a page and a rectangle in percentages, and the pages are rasterised at a JPEG quality you set.
Worked example
A one-page invoice with the customer block covered by the default rule 1, 10, 15, 35, 8 at JPEG quality 0.9 (measured), plus two runs that show what happens to pages without a rule.
| Input | Rules | Output |
|---|---|---|
| invoice-1p.pdf, 598 bytes | 1, 10, 15, 35, 8 · quality 0.9 | invoice-1p-redacted.pdf, 1 page, 15,195 bytes; black box from 10% across and 15% down, 35% wide, 8% tall; no selectable text |
| report-3p.pdf, 1,164 bytes | 2, 5, 5, 90, 20 and 9, 0, 0, 100, 100 | report-3p-redacted.pdf, 3 pages, 39,661 bytes; all three pages rasterised, box on page 2 only, the page-9 rule ignored |
| any file | 1, 10, 15, 35 (four numbers) | No file; error 'Invalid rule: 1, 10, 15, 35' |
Every page is rendered to a 1.5× JPEG and re-embedded whether or not it has a rule, which is why a 1 KB text PDF grows to 15–40 KB.
When this tool helps
- Removing personal data from a document before releasing it publicly or under a disclosure request.
- Covering account numbers, salaries or names in a document shared with a wider audience.
- Preparing a redacted copy of a contract for a party who should not see certain terms.
How to use it
- Choose the PDF file.
- Add one redaction rule per line: page, x, y, width and height as percentages.
- Set the JPEG quality for the rebuilt pages.
- Process and verify the output by searching for the removed text.
Accuracy, limits, and good practice
- Drawing a black rectangle in an editor is not redaction — the text stays underneath and can be copied out. Rebuilding the page as an image is what actually removes it.
- Always verify: open the output and search for a word you redacted. Finding nothing is the confirmation you need before releasing it.
- Coordinates start at the top-left corner and are percentages of the page, so the same rule lands correctly regardless of page size.
Frequently asked questions
Why is drawing a black box not enough?
It draws over the content without removing it. The text remains in the file and can be selected, copied or extracted.
Does the page stay searchable?
No. Redacted pages become images, so their text is no longer selectable — that is precisely the mechanism protecting the content.
How do I check the redaction worked?
Search the output for the redacted text and try the PDF text extractor on it. Neither should find anything.
Are pages without a rule left as they were?
No. The tool rasterises every page of the document at 1.5 times its point size, so untouched pages also lose their selectable text and become JPEG images. For a long document with one sensitive page, extract that page, redact it, and merge it back.
What does the JPEG quality slider change?
Only the compression of the rendered pages, from 0.6 to 1 in steps of 0.05. The black rectangles are drawn before compression, so they are solid at any quality; a lower value mostly reduces file size and softens text edges.
Related tools on this site
- Remove PDF Annotations — Remove comments, highlights, links, and annotation objects from PDF pages
- PDF Visual Comparison — Compare two PDF pages and highlight visible pixel differences
- Crop PDF Pages — Trim page margins by points on every PDF page
Further reading: Preparing a PDF for sharing: order, pages, numbering, stamps and what it still carries
Everything above runs inside this page. Permanent PDF Redaction needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
PDF 永久遮蓋能做什麼
把受影響的頁面重建成影像,藉此永久遮蓋 PDF 中的矩形區域,讓被遮的內容不會以可選取文字的形式留在底下。每條規則以百分比指定頁面與矩形,頁面則依你設定的 JPEG 品質點陣化。
實際範例
一頁發票以預設規則 1, 10, 15, 35, 8、JPEG 品質 0.9 遮住客戶資料區(實測),另外兩列顯示沒有規則的頁面會怎樣。
| 來源檔 | 規則 | 產生的檔案 |
|---|---|---|
| invoice-1p.pdf,598 位元組 | 1, 10, 15, 35, 8 · 品質 0.9 | invoice-1p-redacted.pdf,1 頁,15,195 位元組;黑框從左 10%、上 15% 起,寬 35%、高 8%;沒有可選取文字 |
| report-3p.pdf,1,164 位元組 | 2, 5, 5, 90, 20 與 9, 0, 0, 100, 100 | report-3p-redacted.pdf,3 頁,39,661 位元組;三頁全部點陣化,只有第 2 頁有黑框,第 9 頁的規則被忽略 |
| 任何檔案 | 1, 10, 15, 35(只有四個數字) | 沒有檔案;錯誤:Invalid rule: 1, 10, 15, 35 |
不論有沒有規則,每一頁都以 1.5 倍解析度繪成 JPEG 再嵌回,所以 1 KB 的純文字 PDF 會長到 15–40 KB。
什麼時候用得上
- 在公開釋出或依資訊公開請求提供前,移除文件中的個人資料。
- 在對外分享的文件中蓋掉帳號、薪資或姓名。
- 為不應看到特定條款的一方,準備遮蓋後的合約副本。
使用步驟
- 選擇 PDF 檔案。
- 每行一條遮蓋規則:頁碼、x、y、寬、高(皆為百分比)。
- 設定重建頁面的 JPEG 品質。
- 執行處理,並用搜尋被移除文字的方式驗證輸出。
精確度、限制與實務建議
- 在編輯器裡畫個黑色方塊不算遮蓋——文字仍在底下、可被複製出來。把頁面重建成影像,才是真正移除。
- 務必驗證:打開輸出檔搜尋你遮掉的字詞,找不到才是可以釋出的確認。
- 座標從左上角起算、以頁面百分比表示,因此同一條規則在不同頁面尺寸上都會落在正確位置。
常見問題
為什麼畫黑框不夠?
那只是蓋在內容上而沒有移除。文字仍留在檔案中,可被選取、複製或抽取。
頁面還能搜尋嗎?
不能。被遮蓋的頁面成為影像,文字不再可選取——這正是保護內容的機制本身。
怎麼確認遮蓋成功?
在輸出檔中搜尋被遮的文字,並用 PDF 文字擷取工具跑一次,兩者都應該找不到。
沒有規則的頁面會原樣保留嗎?
不會。工具把文件每一頁都以點數的 1.5 倍點陣化,沒動到的頁也會失去可選取文字、變成 JPEG 圖片。長文件只有一頁敏感時,先把那頁單獨拆開遮蓋,再合併回去。
JPEG 品質滑桿改變什麼?
只影響繪製後頁面的壓縮率,範圍 0.6 到 1,每格 0.05。黑色矩形在壓縮前就畫上去,任何品質下都是實心的;調低主要是縮小檔案、讓文字邊緣變軟。
本站相關工具
- 移除 PDF 註解 — 移除 PDF 頁面中的註解、標示、連結與批註物件
- PDF 視覺差異比較 — 比較兩個 PDF 頁面並標示可見的像素差異
- PDF 頁面裁邊 — 以點數裁除每個 PDF 頁面的四周邊距
延伸閱讀: 分享前整理 PDF:順序、頁面、頁碼、浮水印,以及檔案仍帶著什麼
以上步驟全部在這個頁面內完成,PDF 永久遮蓋 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。