Copy link to clipboard
Copied
I inherited a large file with a lot of text box comments of varying text sizes (see image as an example).
Is there a way to make a universal change to the text size in these text boxes, or does each one need to be adjusted manually?
Thanks for any help.
Copy link to clipboard
Copied
OK, then you can do it using this code:
this.syncAnnotScan();
var annots = this.getAnnots();
if (annots!=null) {
for (var i in annots) {
var annot = annots[i];
if (annot.type=="FreeText") {
var annotContents = annot.richContents;
for (var j in annotContents) annotContents[j].textSize = 20;
annot.richContents = annotContents;
}
}
}
You can run it from the JS Console (for details, see: https://acrobatusers.com/tutorials/javascript_console), or even from an Action or a Custom Command, if you have Acrobat Pro.
Copy link to clipboard
Copied
It's possible to do using a script. What size do you want them to be?
Copy link to clipboard
Copied
Thanks for the response! In this case, I'd say 20 point.
(Not entirely sure how to use a script, for what it's worth)
Copy link to clipboard
Copied
OK, then you can do it using this code:
this.syncAnnotScan();
var annots = this.getAnnots();
if (annots!=null) {
for (var i in annots) {
var annot = annots[i];
if (annot.type=="FreeText") {
var annotContents = annot.richContents;
for (var j in annotContents) annotContents[j].textSize = 20;
annot.richContents = annotContents;
}
}
}
You can run it from the JS Console (for details, see: https://acrobatusers.com/tutorials/javascript_console), or even from an Action or a Custom Command, if you have Acrobat Pro.
Copy link to clipboard
Copied
This worked perfectly--thank you!!
Copy link to clipboard
Copied
Copy link to clipboard
Copied
No, sorry, that's not possible.