Skip to main content
Participant
October 30, 2024
Question

text comment opacity always reverts back to 50%, even when I change the default setting

  • October 30, 2024
  • 1 reply
  • 225 views

I've recently started using Adobe Pro and when I use the text comment feature, the text becomes so transparent that it is barely legible.  I found a way to change the opacity to 100% by clicking Ctrl J, then inserting "this.nselectedAnnots[0].opacity = 1;" in JavaScript debugger, Ctrl + enter to execute the command.  Doing this gives me 100% opacity.  I then go back to my text comment, right click and select Properties, then select "make properties default", but it still only works for that document.  It does not change the default like it leads you to believe.  I have to do this to every document and it is maddening.  This issue is a deal breaker for me, but I'd like to inquire about a permanent fix for this issue before I make the decision to switch to another brand of software.  Does anyone have a permanent fix?

1 reply

S_S
Community Manager
Community Manager
February 19, 2025

Hi @tammy_8916,

 

Hope you are doing well. Thanks for writing in!

 

If you are still looking for a solution, here's my comments to it:

While Acrobat doesn’t allow you to permanently set the opacity for all documents via the standard user interface, you can create a custom JavaScript that runs automatically when you open Acrobat. This script could set the opacity for annotations globally.

  • To set this up:
    1. Open Adobe Acrobat and go to Edit > Preferences (or press Ctrl + K).
    2. Under the JavaScript section, select JavaScript Debugger and enter your custom script.

 

var annots = this.getAnnots();
if (annots) {
    for (var i = 0; i < annots.length; i++) {
        if (annots[i].type === 'Text') {
            annots[i].opacity = 1;  // Sets opacity to 100%
        }
    }
}

 

  • In the Document Properties window (press Ctrl + D or go to File > Properties), go to the Actions tab.
  • Choose Run a JavaScript from the Select Action dropdown.
  • Then, paste the opacity script into the dialog box.

 

Here’s how you can set up a startup JavaScript in Acrobat:

  1. Open Adobe Acrobat.
  2. Go to Edit > Preferences (or press Ctrl + K).
  3. Under the JavaScript category, enable Enable Acrobat JavaScript.
  4. Locate the Startup JavaScript field (it may appear as JavaScript Files or JavaScript folder).

 

Hope this helps.


-Souvik