How to Flatten PDF Comments and Make Annotations Permanent
Question details
The user wants to permanently embed CAD drawings' exported notes, lines, and corrections into the PDF's main content layer so they remain visible but do not appear as interactive items in the Comments pane.

- Product
- Device & OS
- not provided
- Scenario
- Finalizing a PDF file exported from CAD software where various markups and notes were generated as interactive PDF comments rather than base page content.
- Observed behavior
- Annotations and markups remain interactive, selectable, and appear separated in the Comments pane rather than being permanently merged into the document's layout.
Always save a backup copy of your original PDF document before flattening, as merging comments into the base content layer is a permanent, irreversible process.
Flatten Pages via JavaScript
Use a simple JavaScript command in your PDF reader's developer console to instantly merge all interactive comments into the page content.
This is the most direct method for permanently flattening all annotations across a document without altering other essential PDF structure elements.
Open your PDF document in your advanced PDF editor (such as Adobe Acrobat) and navigate to the JavaScript Debugger or Console window.
In the console input area, type the exact command: this.flattenPages();
Press Enter (or Ctrl+Enter depending on your software) to execute the script. The comments will immediately merge into the page background.
Go to File > Save As and save the document under a new name to preserve your original, unflattened file.

Use the Optimized PDF Feature
Utilize the built-in PDF Optimizer to flatten specific types of annotations like form fields and static callouts.
Convert via Print to PostScript
Force the file into a single flat layer by saving or printing the document as a PostScript (.ps) file.
Easily Flatten PDFs and Manage Comments with WPS Office
WPS Office provides an intuitive PDF editor equipped to handle complex annotations, CAD markups, and document flattening. Whether you need to secure your comments by printing to PDF or utilizing advanced markup management, WPS Office simplifies the process.
- 1. Open Your PDF: Launch WPS Office and open the PDF containing the CAD annotations and comments.
- 2. Access the Print Menu: Click on 'Menu' in the top-left corner and select 'Print', or simply press Ctrl+P.
- 3. Select WPS PDF Printer: In the Printer Name dropdown, select 'WPS PDF'. Ensure that the 'Print Content' option is set to include 'Document and Annotations'.
- 4. Print to Flatten: Click 'Print'. You will be prompted to save a new file. This new file will have all visible comments and annotations permanently flattened into the page layer.

Frequently Asked Questions
What does it mean to flatten a PDF?
Flattening a PDF means merging interactive elements like comments, annotations, form fields, and separate visual layers into a single, permanent background layer. This makes the content uneditable as discrete objects and removes them from the Comments pane.
Can I undo or unflatten a PDF later?
No, flattening a PDF is a permanent action. Once the annotations are merged into the base content layer, they cannot be extracted or converted back into interactive comments. Always keep an original, unflattened backup.
Why do CAD drawings export lines and notes as PDF comments?
Many CAD software programs export text, dimension lines, and callouts as interactive PDF annotations to preserve layering, specific formatting, and associated metadata. This allows collaborators to hide or review them easily, but they must be flattened for final non-interactive distribution.
Will flattening my PDF reduce its file size?
Often, yes. Flattening can reduce a document's file size by stripping out the complex metadata, hidden interactive fields, and object histories associated with the annotations, leaving only the visual data.




