These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Comment Identification

JackNaylorPE
Registered: Jun 6 2007
Posts: 9

We receive shop drawings from contractors on construction projects and want to identify comments by color to as a means of identification.....comments in red from or for this guy....comments in blue.....etc.

I can not for the life of me figure out how to change the text color of comments from red to anything else.

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Place your mouse over the note icon and right click the mouse or on the open note, left mouse click the "Options" icon and you can then select the "Properties" option from the note's context menu.

George Kaiser

JackNaylorPE
Registered: Jun 6 2007
Posts: 9
This does not work. This lets you change the color of the border, not the color of the text. At least the way I am doing it:

1. Select Text Box or Callout in question by clicking on it.
2. Right click to bring up properties box
3. Under Appearance tab are:
----a) Style
----b) Border Color
----c) Opacity
----d) Thickness
----e) Fill Color

Nothing for TEXT color
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
The border is the way Acrobat allows classifying comments. If you want color within the comment, one needs to prepare the comment in MS Word and then cut and past the text into the comment field but you will not be able to use JavaScript to test the color of the note's text. The border color can be seen the Comments pane.

George Kaiser

JackNaylorPE
Registered: Jun 6 2007
Posts: 9
I did notice that when I pasted a comment in, it came in in black text.....so not quite sure what you mean by "testing". If you paste ina color don't you just see the color ?

Seems awful weird tho that text color is not editable.
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
With JavaScript one could have an alert or other action with:

//Check a text note red
var annot = this.addAnnot({type: "Text"});
if (annot.strokeColor = color.red) app.alert("The Note is colored Red");
else app.alert("The Note is colored " + annot.strokeColor);

Or sort

this.syncAnnotScan();
var annots = this.getAnnots({
nPage:0,
nSortBy: ANSB_Author,
bReverse: true
});
console.show();
console.println("Number of Annots: " + annots.length);
var msg = "%s in a %s annot said: \"%s\"";
for (var i = 0; i < annots.length; i++)
console.println(util.printf(msg, annots[i].author, annots[i].type,
annots[i].contents));

George Kaiser

JackNaylorPE
Registered: Jun 6 2007
Posts: 9
Not sure what all that means.....if I look at the page and I see black text where I want to see black text, that's gonna be enough for me. I don't need nor want to write code to confirm what I am seeing :) If I need to, then the program isn't satisfying my needs.
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Well, some users have a fair amount of automation within their PDFs and may extract data, form field content or comment content, by use of user written programs or scripts within a PDF and at that point the ability to compare values becomes important. For example, one might want to extract all the comments from a given author into a separate PDF with special formatting, like making the comment text the color of the comment's border.

George Kaiser