There are two possible approaches to changing the comment border style by setting the dash property for annotations in JavaScript.
Code: Select all
var annots = this.getAnnots();
for (i= 0; i < annots.length; i++){
annots[i].setProps({ style: "D", dash: [2,2] });
}
Code: Select all
var annots = this.getAnnots();
for (i= 0; i < annots.length; i++){
annots[i].delay = true;
annots[i].style = "D";
annots[i].dash = [2,2];
annots[i].delay = false;
}
- Acrobat-PDFL SDK: JavaScript Reference > JavaScript APIs > Annotation > Annotation properties > dash
https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#dash - Acrobat-PDFL SDK: JavaScript Reference > JavaScript APIs > Annotation > Annotation properties > delay
https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#delay
Hoping that the above information will be of some help to you.
Thank you so much for your continued support.
Best regards,
rakunavi
- PDF-XChange Editor PRO Version: 10.6.0 build 396
- Adobe Acrobat Reader Continuous Release Version 2025.001.20531
- OS Version: Windows 11 Pro / Home 24H2 Build 26100.4349
- PC Model: GMKtec Nucbox M7 Pro with HUION Kamvas Pro 19 / Lenovo IdeaPad C340-15IWL