本文へスキップ

PDFをフラット化

フォームの入力欄や注釈を、ページの一部にします。

お使いの端末で処理

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

このツールでできること

Flattening turns things that sit on top of a page into part of the page itself. A filled form stops being fillable and becomes a document that reads the same everywhere; a highlight stops being an annotation a reader can drag away and becomes ink. The values and marks are drawn into the page content, and the field and annotation objects are then removed.

Use it before you send a completed form back, so the recipient cannot alter what you entered and no reader can clear the fields by accident. It is also the fix for a form that looks filled on screen and prints blank, and for a marked-up draft you want to circulate with the comments visible but no longer editable.

仕組み

  1. Drop the PDF onto this page.
  2. Leave Flatten form fields on to make the filled values permanent, and Flatten annotations on to burn in highlights, notes, stamps and drawings.
  3. Turn one of them off to keep the other: flattening only the annotations leaves the form fillable, and flattening only the form leaves the comments editable.
  4. Check the advanced options if you want unfilled fields to stay visible as empty boxes, or the drawing font embedded so the result renders identically elsewhere.
  5. Press Flatten. The result reports how many fields and how many annotations were burned in.

There is one failure this tool is built around, and most flatteners fall into it. A form whose /NeedAppearances flag is set carries no drawn appearance for its fields - the reader is expected to render the contents itself from the raw values. Flatten such a file naively and every filled box comes out empty, silently, with the typed data gone. Here the appearances are generated first and then flattened, which is why your entries survive, and any field that could not be drawn is reported rather than quietly dropped.

Links are never flattened, and that is deliberate. A link annotation has no ink of its own - it is an invisible rectangle that responds to a click - so burning it into the page would destroy a working hyperlink and draw nothing in its place. Pop-up windows are skipped for the same reason, and annotations marked hidden are left alone since they were never meant to be seen.

Flattening is one-way. The values are now marks on the page and there is no field left holding them, so no reader can extract, edit or clear them again. Keep the fillable original if you might need to correct an entry, and treat the flattened file as the copy you send rather than the copy you keep.

This is not a digital signature and does not stand in for one. Flattening makes a document harder to edit casually, but the page content is still ordinary PDF an editor can change. If you need evidence that a document has not been altered, sign it; if you need to stop people extracting or editing it, Protect PDF adds the restrictions. Flattening an already-signed document invalidates the signature.

The work happens with pdf-lib in a Web Worker on your device. A completed form usually contains exactly the details you would least like to post to a stranger's server - name, address, account number - and this one never leaves your browser.

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

  • Flattening cannot be undone from the output. The fields no longer exist, so keep the fillable original if you may need to change an entry.
  • A digital signature does not survive flattening. The signed bytes change, so the signature stops validating and the file must be signed again afterwards.

よくある質問

PDFのフラット化とは何ですか?
ページの上に乗っているもの、つまりフォームの入力値・ハイライト・メモ・スタンプ・描いた図形をページの内容そのものとして描き込み、それを保持していたオブジェクトを削除します。見た目は同じままで、振る舞いが変わります。読み手はもう、そこにあるものを編集も消去も移動もできません。
あとでフラット化を取り消せますか?
いいえ。値がページの一部になった時点で、戻す先の入力欄はもう存在しないので、出力されたファイルでは変更が確定します。このツールは読み込んだファイルを書き換えるのではなく新しいファイルを作るため、元のファイルはそのまま残ります。入力をあとで直す可能性が少しでもあるなら、元のファイルは残しておいてください。
空欄のまま残した項目はどうなりますか?
ほかと同じようにフラット化されるので、枠線が見えているボックスは枠線だけが残り、中身は空になります。印刷して手書きで記入するためのフォームを用意しているなら、詳細設定の「空の入力欄を残す」を使ってください。書き込むための枠として見えたままになります。
フラット化したフォームは、署名したものと同じですか?
いいえ。フラット化は入力欄をなくすので気軽な編集は防げますが、ページの内容はPDF編集ソフトで書き換えられますし、ドキュメントが変更されていないことの証明にもなりません。それには電子署名を使ってください。なお、署名済みのファイルをフラット化すると署名は無効になります。
記入済みのフォームはアップロードされますか?
いいえ。記入済みのフォームは、たいていの人が扱うPDFの中でもっとも慎重に扱うべきものです。このツールはpdf-libを使ってブラウザーの中で処理します。何も送信されませんし、ネットワークタブで確認できます。

関連ツール