PDF Editing Issues

How to Batch Change the Color of PDF Comments in Adobe Acrobat

Emma BrownEmma Brown Oct 28, 2026 869 views

Question details

The user needs to change the color of multiple PDF comments simultaneously to avoid time-consuming manual updates.

How to Batch Change the Color of PDF Comments
Product
Adobe Acrobat
Device & OS
not provided
Scenario
Editing a PDF file with numerous comments that were created with the wrong color and require bulk modification.
Observed behavior
Changing each comment color manually is inefficient and slow, necessitating an automated or batch update solution.
Before you start

Before running any scripts, determine exactly which type of comments you are modifying (e.g., FreeText, highlights, or shapes) and ensure you have saved a backup copy of your PDF.

Solution 1Recommended

Use Acrobat JavaScript Console for Batch Updates

Execute a custom script in the Acrobat JavaScript console to automatically find and change the color of all annotations based on their type.

Adobe Acrobat allows users to utilize JavaScript for advanced document manipulation, including the batch processing of annotations. This method requires executing a short script but is highly effective for updating hundreds of comments instantly without manual clicking.

1
Open the JavaScript Debugger

Open your PDF document in Adobe Acrobat and press 'Ctrl + J' (Windows) or 'Cmd + J' (Mac) to open the interactive JavaScript console.

2
Retrieve Existing Annotations

Synchronize the document annotations and use the 'this.getAnnots()' command to retrieve an array of all comments currently present in the PDF document.

3
Filter and Modify Color Properties

Write a JavaScript loop to identify specific comment types (such as FreeText). For text comments, change their rich-text color property to your desired color, such as 'color.green', and apply the updated 'richContents' to the annotations.

4
Set New Properties as Default

Execute the script to apply the changes. Afterward, right-click one of the newly modified comments in the document and select 'Make Current Properties Default' to ensure future comments use the correct color automatically.

Use Acrobat JavaScript Console for Batch Updates
Specify the Correct Property: Ensure your script targets the right property for your specific comment type. Text boxes require updating 'richContents', while shapes or highlights require modifying 'strokeColor' or 'fillColor'.
Manage PDF Comments Easily

Batch Change PDF Comment Colors with WPS Office

Avoid complex JavaScript coding by using WPS Office. With its intuitive comment pane, you can easily select multiple PDF annotations and update their properties, including colors, in just a few clicks.

  1. 1. Open PDF in WPS Office: Launch WPS Office and open the PDF document containing the comments you wish to modify.
  2. 2. Access the Comment Pane: Navigate to the 'Comment' tab on the top ribbon and click to open the 'Comment Pane' on the left side of the screen.
  3. 3. Select Multiple Comments: Hold down the 'Ctrl' key (Windows) or 'Cmd' key (Mac) and click to select multiple comments in the pane, or use 'Shift' to select a continuous list.
  4. 4. Apply New Color: Right-click the selected group of comments, choose 'Properties', and select your new desired color from the color palette to update them all instantly.
Select and modify multiple PDF comments simultaneously via the UIFully compatible with Microsoft Office formats and standard PDF filesUser-friendly interface requiring no programming or scripting knowledgeFree and lightweight alternative for robust PDF editing
microsoft office alternative - wps office

Frequently Asked Questions

Can I batch change the color of PDF highlights without affecting text boxes?

Yes. When using a script in Acrobat, you can filter the 'getAnnots()' array by type, specifying 'Highlight', to ensure your color changes only apply to text highlights and leave other annotations intact.

Why aren't my comment colors updating after running the Acrobat script?

You may be targeting the wrong property for your annotation type. For FreeText boxes, changing the standard text color requires modifying the 'richContents' span objects, whereas borders or standard shapes use the 'strokeColor' property.

Is there a way to batch edit PDF comments without writing JavaScript?

In Adobe Acrobat, batch modifying properties without scripts can be tedious. However, alternative PDF editors like WPS Office allow you to multi-select comments directly from the Comment Pane and change their color via the visual Properties menu without any coding.