How to Improve Performance in PDFs with Thousands of Comments
Question details
The user needs to improve the loading speed and responsiveness of large PDF files exported from AutoCAD that are bogged down by thousands of text comments.

- Product
- Device & OS
- not provided
- Scenario
- Working with a large AutoCAD-generated PDF containing over 8,000 interactive text comments that cause the document viewer to freeze or lag.
- Observed behavior
- The PDF becomes extremely slow and difficult to navigate or manage due to the massive volume of interactive comment objects generated during export.
Before modifying or flattening your PDF file, ensure you create a secure backup copy because flattening permanently merges comments into the document background and cannot be undone.
Prevent AutoCAD from Exporting Text as PDF Comments
Resolve the issue at its source by changing AutoCAD export settings so that SHX text is not converted into thousands of PDF comments.
By default, AutoCAD may export SHX fonts as PDF comments to maintain text searchability. In complex drawings, this generates an excessive amount of interactive objects, crippling PDF performance.
Launch AutoCAD and type 'EPDFSHX' directly into the command line interface.
Change the variable value from '1' to '0' to disable the creation of PDF comments from SHX text.
Alternatively, when plotting or exporting to PDF, open the 'PDF Options' dialog box and uncheck the 'Include SHX text' option.
Save and export your drawing to PDF again. The resulting file will be significantly smaller and much faster to load.

Flatten Existing Comments Using Acrobat JavaScript
If you already have a slow PDF with thousands of comments and cannot re-export it, you can run a quick JavaScript command to flatten them.
Optimize and Manage Heavy PDFs Easily with WPS Office
WPS Office features a robust, lightweight PDF editor capable of handling complex documents without lagging. You can easily compress, merge, and flatten heavy PDFs in just a few clicks to optimize performance.
- 1. Open Your PDF in WPS Office: Launch WPS Office and open your slow or heavy PDF document.
- 2. Access the Optimization Tools: Navigate to the 'Tools' or 'Protect' tab on the top ribbon menu.
- 3. Flatten or Compress the File: Select 'Flatten' to merge all comments into the background, or use 'Compress' to reduce the overall file size.
- 4. Save the Optimized PDF: Click 'Save As' to create a fast, optimized copy of your document.

Frequently Asked Questions
Why do AutoCAD PDFs generate so many comments?
By default, AutoCAD exports SHX text fonts as PDF comments to ensure the text remains searchable within the PDF viewer. In complex architectural or engineering drawings, this can create thousands of individual comment objects, which significantly slows down PDF rendering.
Does flattening a PDF reduce its file size?
Yes, flattening a PDF integrates interactive elements like form fields, annotations, and text comments into the static background image. This streamlines the document's structure, reducing rendering time and frequently decreasing the overall file size.
Can I edit the text comments after they have been flattened?
No. Once a PDF is flattened, the comments become a permanent part of the document's graphical background. You will no longer be able to select, move, or edit them using standard PDF commenting tools.
Can I delete all comments instead of flattening them?
Yes, if the text inside the comments is not required for viewing the drawing, you can open the Comments pane in your PDF editor, select all comments, and delete them entirely. This will also fix the performance issue.




