How to Flatten PDF Stamps and Annotations in Acrobat Pro
Question details
The user needs to convert editable annotations and stamps in a PDF into permanent, static page content to prevent other users from modifying them.

- Product
- Adobe Acrobat Pro
- Device & OS
- not provided
- Scenario
- Preparing a PDF document for sharing where recipients should be able to save and use the file, but must be restricted from moving, deleting, or altering existing stamps and markups.
- Observed behavior
- By default, PDF stamps and annotations remain as active, layered elements that any user with PDF editing software can easily move or delete.
Flattening a PDF document is a permanent and irreversible process. Always create and keep a backup of your original, unflattened file before proceeding with these steps.
Use Acrobat Action Wizard to Flatten PDF
Execute a built-in JavaScript command via the Action Wizard to permanently merge all stamps and annotations into the document's background layer.
Acrobat Pro allows users to run custom JavaScript commands to manipulate document properties. Using the 'flattenPages' command is the most direct way to convert dynamic markups into static page content.
Launch Adobe Acrobat Pro, open your PDF document, and navigate to 'Tools' > 'Action Wizard'.
Click 'New Action' from the Action Wizard toolbar. Under 'Choose tools to add', select 'More Tools' and click 'Execute JavaScript'.
Click the '+' icon to add it to the action steps. Open the settings for the JavaScript step and type 'this.flattenPages();' into the editor window.
Save the new action, then run it on your current PDF document. Once the action completes, use 'File' > 'Save As' to save the flattened document under a new name.

Flatten PDF using Print to PDF
Use the built-in 'Print to PDF' function as a quick, no-code workaround to flatten the document.
Easily Flatten and Secure PDFs with WPS Office
WPS Office offers a comprehensive, built-in PDF editor that allows you to easily flatten documents, add secure digital signatures, and manage file permissions without needing complex JavaScript commands.
- 1. Open PDF in WPS Office: Launch WPS Office and open your PDF document containing the stamps and annotations.
- 2. Access Print Settings: Click on the 'Menu' button in the top left corner and select 'Print'.
- 3. Choose PDF Printer: Select 'WPS PDF' or your system's virtual PDF printer from the Printer list.
- 4. Include Markups: Check the 'Print content' dropdown and ensure it is set to include the document and all annotations.
- 5. Export Flattened PDF: Click 'Print' to save a brand new, fully flattened PDF file to your local drive.

Frequently Asked Questions
Can I reverse the flattening process to edit the stamps later?
No, flattening a PDF permanently integrates the annotations, stamps, and form fields into the base page content. This process is irreversible, which is why saving a separate backup of the original editable file is highly recommended.
Will flattening a PDF reduce its file size?
In many cases, flattening a PDF can reduce the file size by discarding the complex layered metadata, interactive properties, and comment histories associated with stamps and annotations.
What happens to interactive form fields when a PDF is flattened?
When you flatten a PDF, all active form fields are converted into regular, static text or graphics. Users will no longer be able to type into the fields, click checkboxes, or select items from dropdown menus.
Is flattening the same as securing a PDF with a password?
No. Flattening merges visual elements into the background so they can't be clicked and dragged, but standard PDF editors can still alter the base text. Securing a PDF with an editing password encrypts the document settings, providing a much higher level of protection against unauthorized modifications.




