Skip to main content
Participant
February 25, 2021
Question

Setting default properties for highlight text in Adobe Acrobat using Javascript

  • February 25, 2021
  • 1 reply
  • 374 views

I am having a problem finding articles or references which allows me to set the default properties of highlight text command like making the default stroke color to yellow.

 

References that I read only shows the code.

var annot = this.addAnnot({type: "Line"})
annot.setProps({
page: 0,
points: [[10,40],[200,200]],
strokeColor: color.red,
author: "A. C. Robat",
contents: "Check with Jones on this point.",
popupOpen: true,
popupRect: [200, 100, 400, 200], // place rect at tip of the arrow
arrowBegin: "Diamond",
arrowEnd: "OpenArrow"
})

 

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
February 25, 2021

Not possible.