PDFを墨消し
覆い隠すのではなく、テキストと画像を完全に取り除きます。
このツールはブラウザーの中だけで動きます。ファイルがアップロードされることはなく、そのことはブラウザーのネットワークタブでご自身で確認できます。 ご自分で確かめてください。ブラウザーのネットワークタブを開いて見てください。残りの作業回数を尋ねる小さなリクエストが1つだけ表示されます。ツール名とハッシュだけで、ファイルは決して含まれません。
このツールでできること
Redaction here removes the content rather than covering it. Every page carrying a redaction is rebuilt from pixels: the boxes are drawn into the page, the page is rendered at the resolution you choose, and the render becomes the new page. The original content stream is discarded rather than edited, so there is nothing underneath to select, copy or search. Pages with no redactions are copied through untouched.
Whenever a document has to go out with something taken out of it: names in a court filing, salaries in a board pack, an account number on an invoice, patient details in a medical record, an internal comment in a contract going to the other side.
仕組み
- Drop the PDF onto this page and draw boxes over whatever has to go. Each box is one redaction.
- Add a phrase under find and redact to catch every occurrence of a name or a number wherever it appears, instead of hunting page by page.
- Set the resolution for the rebuilt pages. 200 dpi reads well on screen and prints acceptably; 300 is better for print and produces a larger file.
- Leave keep the document searchable on unless you have a reason not to, and leave remove metadata on - a document's properties often hold the very name you have just taken off the page.
- Press Redact, then open the result and try to select the redacted text. There will be nothing there.
Drawing a black rectangle over text is not redaction, and the mistake has leaked court records, medical files and government documents repeatedly for twenty years. The rectangle is a drawing instruction added on top; the text underneath is still in the content stream, where anyone can select it, copy it or pull it out with a two-line script. The same is true of cropping.
Rebuilding from pixels is the only approach a browser can take that is genuinely safe, and it is deliberately blunt. The boxes are drawn into the document first and the page is rendered afterwards rather than the other way round, so no rounding in raster space can leave a one-pixel sliver of the original visible along an edge. There is no underneath, because the underneath was thrown away.
Losing search would be a real cost, so the surviving text is put back. The text layer is extracted before anything is drawn, every run falling inside a redaction box is dropped, and the rest is drawn back invisibly over the image. The document stays searchable and the redacted words are genuinely absent - the combination people assume a black box gives them and it almost never does.
The trade-off is size and fidelity on the pages you touched. A vector page that becomes a 200 dpi JPEG is usually several times larger, and links, form fields and annotations on that page do not survive the rebuild - which is why only affected pages are rebuilt. Check the result rather than trusting it: search for the word you removed, then select across the box and paste.
このツールにできないこと
- Pages containing redactions are replaced by images at the resolution you choose, so they grow, stop scaling cleanly, and lose any links, form fields or annotations they carried.
- Find and redact matches text within a single run, so a phrase broken across a line or a change of font can be missed. Read the result before sending it.
- A scanned document has no text layer, so find and redact has nothing to search. Draw the boxes by hand, or run OCR PDF first.
- Redaction removes what is on the page. Content elsewhere in the file - attachments, bookmark titles, an embedded XMP record - is a separate matter; metadata removal is offered here and Sanitise PDF goes further.
よくある質問
- これは本当の墨消しですか、それとも黒い四角を置くだけですか?
- 本当の墨消しです。墨消しするページは黒い枠を塗り込んだ状態で画像として描画され、その画像がページを置き換えるので、元のテキストオブジェクトは出力ファイルの中に一切残りません。テキストの上に黒い長方形を描くだけだと、テキストはその下に残ったままで、墨消しの失敗が報道されるのはいつもこのパターンです。
- テキストが本当に消えたことを確かめるには?
- 数秒でできる方法が2つあります。出力を開いて、墨消しした語を検索してください。1件も見つからないはずです。次に墨消しした部分をまたいで選択してコピーし、テキストエディターに貼り付けてください。何も出てこないはずです。
- ある名前が出てくる箇所を、すべて墨消しできますか?
- はい。「検索して墨消し」に語句を入力すると、一致するテキストの並びがすべて枠で覆われます。ドキュメント全体でも、指定したページ範囲の中でも実行できます。大文字と小文字は区別せず、口座番号のようなパターンには正規表現も使えます。並び単位で照合するため、改行で分断された語句は見落とされることがあります。
- ファイルが大きくなったのはなぜですか?
- 墨消ししたページが画像になったからです。ベクターのテキストでできたページは小さく、同じページを200 dpiのJPEGにすると通常は数倍になります。変換されるのは墨消しを含むページだけなので、影響の大きさは墨消しした量に比例します。150 dpiに下げると軽くなります。
- 文書のプロパティも一緒に整理されますか?
- はい、既定でそうします。メタデータには作成者の名前・元のファイルパス・作成に使ったソフトが入っているのが普通で、ページから消したばかりの名前そのものが入っていることもあります。プロパティを残しておきたい場合は、この項目をオフにできます。
- 墨消しのためにファイルはアップロードされますか?
- いいえ。このツールでは、それがすべてです。墨消しするドキュメントとは、定義上、中に見せたくないものが入っているドキュメントであり、その部分を消してもらうためにサーバーへ送るのは本末転倒です。描画・マスク・書き出しはすべて、ブラウザーの中のWeb Workerで行われます。