Select all Highlights/Comments...

The PDF-XChange Viewer for End Users
+++ FREE +++

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Mort
User
Posts: 2
Joined: Thu Mar 22, 2012 1:09 pm

Select all Highlights/Comments...

Post by Mort »

Hi,
I'm not sure if there is a thread concerning this, already, but I couldn't find one, so...
I'm currently correcting a dissertation by a friend, and have highlighted some things in the pdf. After about a hundred comments I noticed that I used the same highlighting colour as he did for entirely different things. Right now, I have to select each of my highlights and change its colour manually. I've tried the usual ctrl + a to reduce the work, but apparently without any success. Is there another way to select all highlights and apply the default settings, or will I have to wait for a new version?
Best,
Mort
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Select all Highlights/Comments...

Post by Stefan - PDF-XChange »

Hello Mort,

I am afraid that the only way to "mass correct" some comments currently is to use JS code as the one discussed here:
https://forum.pdf-xchange.com/ ... 35&t=12500

You could use e.g. the following

Code: Select all

var annots = this.getAnnots();
for (var i = 0; i < annots.length; i++) 
{
  if (annots[i].type == "Highlight" && annots[i].author == "YOUR NAME")  )
  { 
    annots[i].strokeColor = color.red;
  }
}
You will need to change the "YOUR NAME" string with the actual name that your viewer uses. You can check the name in the comments pane if you order comments by author, or if you hover over a highlight that you did.

Best,
Stefan
Mort
User
Posts: 2
Joined: Thu Mar 22, 2012 1:09 pm

Re: Select all Highlights/Comments...

Post by Mort »

Great! Thanks a million
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Select all Highlights/Comments...

Post by Stefan - PDF-XChange »

:)