Flatten PDF Forms
Turn editable form fields into fixed page content
Flatten PDF Forms — what it does
Convert a PDF's editable form fields into fixed page content, so the values become part of the page and can no longer be changed or cleared. Flattening is the step that turns a filled form into a final document, and the one people forget before sending a completed form on.
Worked example
An internal expense-claim form with four fields flattened; reading the output back with pdf-lib finds no fields left.
| Input | Output |
|---|---|
| expense-claim-form.pdf — 1 page, 4 AcroForm fields (3 text, 1 checkbox), 5.6 KB | expense-claim-form-flattened.pdf — 1 page, 0 fields; the field appearances are drawn into the page, 3.7 KB |
| report-3p.pdf — 3 pages, no form layer | report-3p-flattened.pdf — 3 pages, content unchanged, no error |
| expense-claim-form-filled.pdf — saved by the form filler without flattening | expense-claim-form-filled-flattened.pdf — the typed values become fixed page content |
A file without any form still goes through and is downloaded with the -flattened suffix.
When this tool helps
- Finalising a completed form so the recipient cannot alter the entered values.
- Ensuring form contents display identically in viewers that render fields inconsistently.
- Preparing a filled form for printing or archiving as a fixed record.
How to use it
- Choose the filled PDF file.
- Confirm the values shown are the ones you want fixed.
- Flatten the form fields.
- Download the flattened document.
Accuracy, limits, and good practice
- Flattening is one-way. Keep the unflattened file if you may need to correct a value later.
- It also fixes the common problem of form values that appear in one PDF viewer and vanish in another.
- Flattening is not encryption: the page content is fixed, but a determined editor can still alter the page like any other PDF content.
Frequently asked questions
Why flatten at all?
Field values remain editable and can be cleared accidentally. Flattening makes the completed form a stable record.
Does it change how the form looks?
The values are drawn as page content in place, so the appearance stays the same while interactivity ends.
Can I flatten only some fields?
Flattening applies to the form as a whole. Selective flattening needs a full PDF editor.
What happens to fields that are still empty?
They are drawn exactly as they currently look: an empty box with a border stays an empty box, an unticked checkbox stays an empty square. Nothing is removed, the appearance is simply frozen into the page.
Does the file get smaller?
Usually a little. The form here went from 5.6 KB to 3.7 KB, mostly because the file is rewritten with compressed streams, not because content was dropped. Large files change little in size.
Related tools on this site
- Insert PDF Separator Pages — Insert labeled separator pages at a chosen interval
- Merge PDF — Combine multiple PDF files into one
- PDF Header & Footer — Add page-aware header or footer text
Further reading: Preparing a PDF for sharing: order, pages, numbering, stamps and what it still carries
Everything above runs inside this page. Flatten PDF Forms needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
扁平化 PDF 表單能做什麼
把 PDF 的可編輯表單欄位轉成固定的頁面內容,讓填入的值成為頁面的一部分,無法再被修改或清空。扁平化是把「填好的表單」變成「最終文件」的那一步,也是多數人在轉寄填妥表單前忘記做的那一步。
實際範例
一份有四個欄位的內部費用申請表扁平化;用 pdf-lib 讀回輸出檔,已沒有任何欄位。
| 輸入 | 輸出 |
|---|---|
| expense-claim-form.pdf — 1 頁,4 個 AcroForm 欄位(3 個文字、1 個核取方塊),5.6 KB | expense-claim-form-flattened.pdf — 1 頁,0 個欄位;欄位外觀畫進頁面,3.7 KB |
| report-3p.pdf — 3 頁,沒有表單層 | report-3p-flattened.pdf — 3 頁,內容不變,沒有錯誤 |
| expense-claim-form-filled.pdf — 表單填寫器未扁平化存出的檔案 | expense-claim-form-filled-flattened.pdf — 填入的值變成固定的頁面內容 |
沒有表單的檔案一樣會處理並下載,檔名加上 -flattened。
什麼時候用得上
- 把填妥的表單定稿,讓收件人無法更動已填內容。
- 確保表單內容在各種對欄位處理不一致的檢視器中都顯示相同。
- 把填妥的表單整理成可列印或封存的固定紀錄。
使用步驟
- 選擇已填寫的 PDF 檔案。
- 確認畫面顯示的值就是要固定下來的內容。
- 執行表單欄位扁平化。
- 下載扁平化後的文件。
精確度、限制與實務建議
- 扁平化是單向的。之後可能還要改值的話,請保留未扁平化的檔案。
- 它同時解決了常見問題:表單值在某個 PDF 檢視器看得到、換一個就不見了。
- 扁平化不是加密:內容雖已固定,但有心人仍能像編輯其他 PDF 內容一樣改動頁面。
常見問題
為什麼要扁平化?
欄位值仍可編輯,也可能被誤清空。扁平化能讓填妥的表單成為穩定的紀錄。
會改變表單外觀嗎?
值會就地畫成頁面內容,外觀維持不變,只是失去互動性。
可以只扁平化部分欄位嗎?
扁平化以整份表單為單位。要選擇性處理需使用完整的 PDF 編輯器。
還是空白的欄位會怎樣?
會照目前的樣子畫出來:有框線的空欄位仍是空框,未勾的核取方塊仍是空方格。不會移除任何東西,只是把外觀固定到頁面上。
檔案會變小嗎?
通常會小一點。這份表單從 5.6 KB 變成 3.7 KB,主要是因為檔案以壓縮串流重新寫出,不是因為內容被丟掉。大檔案的大小幾乎不變。
本站相關工具
- 插入 PDF 分隔頁 — 依指定間隔插入帶標籤的分隔頁
- 合併 PDF — 將多個 PDF 合併為單一檔案
- PDF 頁眉與頁尾 — 加入支援頁碼變數的頁眉或頁尾
延伸閱讀: 分享前整理 PDF:順序、頁面、頁碼、浮水印,以及檔案仍帶著什麼
以上步驟全部在這個頁面內完成,扁平化 PDF 表單 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。