Help - Keeping my name from 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

CI&DETS
User
Posts: 3
Joined: Fri Mar 06, 2015 3:39 pm

Help - Keeping my name from comments

Post by CI&DETS »

Hello everyone,

I usually use XChange Viewer's comment to add notes when peer reviewing some papers for a couple of journals, and as you know those things are supposed to be anonymous!, but as it turns out I just discovered that I've been sending my name at the start of each comment! I think the program is getting my name from my windows account, is there any way to change that so that I can do my work in anonymity?

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

Re: Help - Keeping my name from comments

Post by Stefan - PDF-XChange »

Hello CI&DETS,

The author property for each annotation is required by the PDF specification, so it has to be there. To obfuscate the name - before sending a file - you can run the following script from the JS console (Ctrl-J to open it):

Code: Select all

var annots;
annots = this.getAnnots();

for (i = 0; i<annots.length; i++){
  if (annots[i].author == "YOUR NAME HERE AS IT APPEARS IN AN ANNOTATION") {
    annots[i].author = "";
  }
}
Of course - make sure to update the above script with the correct name, and then hit the "run" button. This will change the author of all your comments to "unknown".

Regards,
Stefan
CI&DETS
User
Posts: 3
Joined: Fri Mar 06, 2015 3:39 pm

Re: Help - Keeping my name from comments

Post by CI&DETS »

Thank you so very much Stefan!! I will try it right away!
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Help - Keeping my name from comments

Post by Stefan - PDF-XChange »

:)
CI&DETS
User
Posts: 3
Joined: Fri Mar 06, 2015 3:39 pm

Re: Help - Keeping my name from comments

Post by CI&DETS »

It works like a charm!!!

Again, thank you Stefan, you are a god among men!!
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Help - Keeping my name from comments

Post by Stefan - PDF-XChange »

Thanks for the kind words CI&DETS,

Proclaiming me 'god' created quite a furor amongst my colleagues, and they started claiming other celestial positions for themselves :)

Glad we could help!
Enjoy using our products and
Kind Regards,
Stefan