PDF Editing Issues

How to Make a Completed PDF Form Read-Only (Flatten PDF)

Aamir Naveed AkramAamir Naveed Akram Nov 5, 2026 869 views

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.

How to Make a Completed PDF Form Read-Only
Product
PDF
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the filled PDF

Launch your advanced PDF editor (such as Adobe Acrobat) and open the completed fillable form.

2
Open the JavaScript Console

Access the JavaScript debugger console by pressing 'Ctrl + J' (Windows) or 'Cmd + J' (Mac).

3
Execute the flattening script

Type the command 'this.flattenPages();' into the console window and press Enter to run the script.

4
Save the document

Click 'File' and select 'Save As' to save the newly flattened, read-only document under a new name.

Flatten the PDF Form Fields Using a Script
Reader Limitation: Adobe Acrobat Reader DC is a free application with limited functionality. It cannot run document-level flattening scripts or set document security. You must use a complete PDF editor to apply these changes.
PDF Form Tools

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. 1. Install WPS Office: Download and install the free version of WPS Office on your computer.
  2. 2. Open the PDF: Launch WPS PDF and open your fillable PDF form.
  3. 3. Fill the form: Type the necessary information into the interactive form fields.
  4. 4. Print to PDF: Go to 'Menu' > 'Print' and select 'WPS PDF' as your printer to instantly create a flattened, uneditable copy.
Easily fill and save interactive PDF formsHigh compatibility with standard Adobe Acrobat PDF formatsConvert PDFs to Word, Excel, or image formats securelyLightweight and user-friendly interface
microsoft office alternative - wps office

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.