本文へスキップ

PDFを修復

壊れたファイルを組み直して、もう一度開けるようにします。

お使いの端末で処理

このツールはブラウザーの中だけで動きます。ファイルがアップロードされることはなく、そのことはブラウザーのネットワークタブでご自身で確認できます。 ご自分で確かめてください。ブラウザーのネットワークタブを開いて見てください。残りの作業回数を尋ねる小さなリクエストが1つだけ表示されます。ツール名とハッシュだけで、ファイルは決して含まれません。

このツールでできること

This rebuilds a damaged PDF from whatever is still readable inside it. The cross-reference table - the index that tells a reader where every object lives - is reconstructed by scanning the file, and the result is written out as a clean document. Before you are offered anything, the repaired file is opened again to check it really works, and the report tells you how many pages it had before and how many it has now.

Use it when a reader refuses the file: a download that stopped part way, a file recovered from a failing drive or a memory card, one that came out of a crashed export, or one that opens in a browser but not in Acrobat.

仕組み

  1. Drop the damaged PDF onto this page. This is the one tool that accepts a file whose header looks wrong, because that is exactly the file it exists for.
  2. Leave Rebuild the cross-reference table on. It is the fix for the large majority of PDFs that will not open.
  3. Leave Recover pages on so that, if the ordinary repair fails, the document can be rebuilt from its pages alone.
  4. Turn on Drop unreadable objects only if the first attempt fails. It sacrifices whatever those objects held in exchange for getting a file at all.
  5. Press Repair, then read the report: it says how many pages were readable before and how many the repaired file contains.

Most files that will not open are not badly damaged. A PDF ends with a table of byte offsets pointing at every object in it, and if that table is wrong - because bytes were added, a transfer truncated, or an editor wrote it incorrectly - a strict reader gives up even though the content is all present. The repair scans the whole file for objects, rebuilds the table from what it finds, and writes a fresh document around it.

There is a second, stronger attempt behind the first. If the ordinary repair cannot complete, the document is rebuilt from its page tree into an empty file, which recovers documents whose catalogue is gone but whose pages survived - the usual shape of an interrupted download. That path copies page content and leaves document-level structures behind, so a file recovered this way may lose its outline, its interactive form and its attachments while keeping every page.

The result is verified before it is offered to you. A repair that produces a file nothing can open has not repaired anything, so the output is read back and its pages counted. The counts before and after are both reported, and a repair that recovered 4 pages of 40 is a very different outcome from one that recovered all 40.

Nothing can be recovered that is not in the file. If a transfer stopped at 60 per cent, the missing 40 per cent is gone and no tool will invent it. Keep the damaged original until you have checked the result, because a second attempt with different options sometimes does better.

The repair runs on your device using qpdf compiled to WebAssembly. That matters more here than elsewhere: a file you cannot open is a file you cannot check, and uploading an unknown document to a stranger's server to find out what is in it is a poor trade.

このツールにできないこと

  • Data that is genuinely missing cannot be recovered. A truncated download comes back as the pages that arrived, not as the whole document.
  • An encrypted file cannot be repaired without its password, because its objects cannot be read. Remove the protection with Unlock PDF first.

よくある質問

開けないPDFは、実際どこが壊れているのですか?
たいていは相互参照テーブル、つまりファイルの末尾にある各オブジェクトの位置(バイトオフセット)の索引です。実際の位置とずれていると、中身が無事でも厳密なリーダーはドキュメントを受け付けません。ファイル全体を走査してこのテーブルを作り直せば、こうしたケースの大半は直ります。
ページはどのくらい戻りますか?
読み取れるものはすべて戻り、その件数が結果に表示されます。修復前に読めたページ数(ファイルが開けなかったのなら、たいていはゼロです)と、修復後のドキュメントに含まれるページ数の両方が出ます。この数が想定と合わない場合は、単に壊れているのではなく、ファイルの一部が欠けています。
修復に失敗しました。ほかに試せることはありますか?
「読み取れないオブジェクトを破棄」をオンにして、もう一度実行してください。解析できないオブジェクトは処理を止める代わりに捨てられます。その中身は失われますが、使えるドキュメントになることがよくあります。それでもだめなら、元の入手元とファイルサイズを比べてください。本来よりずっと小さいファイルは転送中に途中で切れているので、ダウンロードし直すしかありません。
壊れたファイルをアップロードする必要はありますか?
いいえ。ここではそれに意味があります。開けないファイルは中身を確認できないファイルであり、何が入っているのか調べるために見知らぬサーバーへ送るのは、取る必要のないリスクです。qpdfはブラウザーの中でWebAssemblyとして動き、何も送信されません。
修復するとページそのものが変わりますか?
いいえ。ページの内容はそのままコピーされ、組み直されるのはその周りの構造です。強い復旧処理が必要だった場合は、しおり・入力フォーム・添付ファイルといったドキュメント全体に関わる機能が残らないことがありますが、ページはそのまま引き継がれます。

関連ツール