How to Make a Completed PDF Form Read-Only (Flatten PDF)
Question details
The user needs to convert a completed fillable PDF form into a read-only document so it can be shared with customers without editable fields.

- Product
- Device & OS
- not provided
- Scenario
- Preparing a filled PDF form for distribution to customers while ensuring the data cannot be altered.
- Observed behavior
- The form fields remain editable and highlighted in standard reader software, requiring a way to flatten the document or secure it.
Always save a backup copy of your original fillable PDF form before flattening, as the process converts form fields into permanent text and cannot be undone.
Flatten the PDF Form Fields Using a Script
Flattening converts editable form fields into static text, preventing further changes and removing the blue highlight. This requires a full PDF editor rather than a basic reader.
Standard free PDF readers do not have the capability to apply document security or permanently finalize form fields. You will need a full PDF editor to execute a flattening script.
Launch your advanced PDF editor (such as Adobe Acrobat) and open the completed fillable form.
Access the JavaScript debugger console by pressing 'Ctrl + J' (Windows) or 'Cmd + J' (Mac).
Type the command 'this.flattenPages();' into the console window and press Enter to run the script.
Click 'File' and select 'Save As' to save the newly flattened, read-only document under a new name.

Use the 'Print to PDF' Feature
If you do not have access to advanced JavaScript tools, printing the document to a new virtual PDF effectively flattens all form fields into standard text.
Easily Manage and Flatten PDF Forms with WPS Office
WPS Office provides a comprehensive PDF toolkit that allows you to easily view, fill, edit, and flatten PDF forms without needing expensive alternative software.
- 1. Install WPS Office: Download and install the free version of WPS Office on your computer.
- 2. Open the PDF: Launch WPS PDF and open your fillable PDF form.
- 3. Fill the form: Type the necessary information into the interactive form fields.
- 4. Print to PDF: Go to 'Menu' > 'Print' and select 'WPS PDF' as your printer to instantly create a flattened, uneditable copy.

Frequently Asked Questions
Why can't I make a PDF read-only in a basic PDF Reader?
Basic PDF readers are primarily designed for viewing documents and filling out forms. They do not include advanced editing features like applying document security, setting passwords, or permanently flattening interactive fields.
What does it mean to flatten a PDF form?
Flattening a PDF merges interactive elements like text fields, dropdown menus, and checkboxes into the main visual layer of the document. This converts typed data into permanent, static text, making it uneditable and removing any visual field indicators like blue highlights.
How can I remove the blue highlight from PDF form fields?
The blue highlight is an indicator designed to help users locate editable fields. To remove it permanently before sharing the document, you need to flatten the file or print it using a 'Print to PDF' virtual printer, which removes the interactive field layer.




