I have a 50+ page document with a lot of copy & pasted text boxes throughout. All the boxes have a red border which I would like to change to a more subtle colour. Is there any way I can change all the boxes in the document at once without having to go to the properties of each one individually?
TIA
Change Text Box properties on entire document
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
-
- User
- Posts: 6
- Joined: Fri Feb 08, 2013 8:56 am
- Tracker Supp-Stefan
- Site Admin
- Posts: 17901
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Change Text Box properties on entire document
Hello Muppet Rat,
You could achieve this with some JavaScript.
To open the JS console in the Viewer press Ctrl-J, and then copy and paste this code there:This will make all free text annotations with pink border. If you want another colour you can change the Red, Green and Blue values accordingly.
Best,
Stefan
You could achieve this with some JavaScript.
To open the JS console in the Viewer press Ctrl-J, and then copy and paste this code there:
Code: Select all
var annots = this.getAnnots();
for(i = 0; i < annots.length; i++){
if (annots[i].type == "FreeText"){
annots[i].strokeColor = ["RGB", 1, 0.5, 0.7];
}
}
Best,
Stefan
-
- User
- Posts: 6
- Joined: Fri Feb 08, 2013 8:56 am
Re: Change Text Box properties on entire document
Hi Stefan,
Thanks for that. It "sort" of worked. It's made the boxes vanish, and the colour I chose shows up when the box is selected.
All good though - the scary red all over the doc has gone
Thanks again
Thanks for that. It "sort" of worked. It's made the boxes vanish, and the colour I chose shows up when the box is selected.
All good though - the scary red all over the doc has gone
Thanks again
- Tracker Supp-Stefan
- Site Admin
- Posts: 17901
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Change Text Box properties on entire document
Hi Muppet Rat,
It should not be making them vanish!
So please make sure you have the latest build of our Viewer first (2.5.208):
www.tracker-software.com/PDFXVwer.zip
After that try exporting all comments to a data file, delete all comments from a copy of the file, import the ones you exported earlier and then try running the script again!
Best,
Stefan
It should not be making them vanish!
So please make sure you have the latest build of our Viewer first (2.5.208):
www.tracker-software.com/PDFXVwer.zip
After that try exporting all comments to a data file, delete all comments from a copy of the file, import the ones you exported earlier and then try running the script again!
Best,
Stefan
-
- User
- Posts: 6
- Joined: Fri Feb 08, 2013 8:56 am
Re: Change Text Box properties on entire document
I'm not sure I understand that, do you mean "Export all settings to data file"? By "comments" do you mean the pasted blocks of text?Tracker Supp-Stefan wrote: After that try exporting all comments to a data file, delete all comments from a copy of the file, import the ones you exported earlier and then try running the script again!
Since putting in the script, new blocks of text have the coloured border, just not the earlier ones.
- Paul - Tracker Supp
- Site Admin
- Posts: 6897
- Joined: Wed Mar 25, 2009 10:37 pm
- Location: Chemainus, Canada
- Contact:
Re: Change Text Box properties on entire document
Hi Muppet Rat,
Comments --> Export Comments to Data File... and Comments --> Import Comments
hth
He means use the command in the Comments menu to export and import the comments to/from a file.I'm not sure I understand that, do you mean "Export all settings to data file"? By "comments" do you mean the pasted blocks of text?
Comments --> Export Comments to Data File... and Comments --> Import Comments
hth
Best regards
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com