How to Unlock Read-Only PDF Comments in Acrobat XI Pro
Question details
The user needs a way to unlock PDF comments that are stuck in a locked or read-only state because the standard Acrobat user interface does not allow these properties to be modified.

- Product
- Adobe Acrobat XI Pro
- Device & OS
- not provided
- Scenario
- Attempting to edit, move, or delete existing annotations in a PDF file, but finding them completely locked.
- Observed behavior
- PDF comments remain locked and read-only, even though the visible 'Locked' checkbox appears to be unchecked in the Acrobat properties menu.
Before running any automated scripts, save a backup copy of your PDF file to prevent accidental data loss or irreversible changes to your document.
Use Acrobat JavaScript Console to Unlock Comments
Run a batch JavaScript command in the Acrobat console to forcefully bypass the UI glitch and remove the lock and read-only attributes from all comments.
When the Acrobat interface fails to update comment properties due to software glitches, its built-in JavaScript engine can interact with the document's backend properties directly to resolve the issue.
Launch Acrobat XI Pro, open your PDF file, and press 'Ctrl + J' (Windows) or 'Cmd + J' (Mac) to open the interactive JavaScript Console.
Copy and paste the following code into the console: this.syncAnnotScan(); var annots = this.getAnnots(); if (annots != null) { for (var i in annots) { var annot = annots[i]; annot.setProps({lock:false, readOnly:false}); } }
Highlight all the code you just pasted and press 'Ctrl + Enter' (or 'Enter' on the numeric keypad) to run the script. All comments in the PDF will instantly become editable.

Export and Re-import Comments via FDF
Export your locked comments to a separate data file and import them into a fresh PDF to strip away the corrupted read-only properties.
Edit and Manage PDF Comments Seamlessly with WPS Office
Avoid complex JavaScript codes and outdated software glitches. WPS Office provides an intuitive, user-friendly interface to add, edit, lock, or unlock PDF comments effortlessly.
- 1. Open your PDF: Launch WPS Office and open the PDF document containing the annotations.
- 2. Access the Comment tab: Navigate to the 'Comment' tab located on the top ribbon to view all available annotation and markup tools.
- 3. Modify Comment Properties: Click on any comment to select it. Right-click to access its 'Properties', where you can easily toggle the locked status directly from the visual interface without any coding.

Frequently Asked Questions
Why are my PDF comments locked even when the box is unchecked?
In some older versions of Adobe Acrobat, document corruption or software bugs can cause the underlying read-only property to remain active internally, even if the user interface checkbox fails to display the correct status.
How do I access the JavaScript console in newer versions of Adobe Acrobat?
In modern versions like Acrobat Pro DC, you can access the JavaScript Debugger by navigating to Tools > JavaScript > Document JavaScripts, or by using the standard Ctrl+J / Cmd+J shortcut.
Is Adobe Acrobat XI Pro still safe to use?
Adobe officially ended support for Acrobat XI Pro in 2017. It no longer receives security patches or bug fixes, making it less secure and more prone to compatibility issues compared to modern alternatives.
Can I unlock comments if the entire PDF is password protected?
No. If the PDF document has security restrictions applied preventing commenting or editing, you must first enter the permissions password to unlock the document before scripts can modify the comments.




