Highlighted text to bookmark
I am trying to automate creating bookmarks from the highlighted text in a document. We use the Find, Highlight and Extract action on large document files and want to have it also create a bookmarks. This is the javascript from the action
// Highlight Color
var colHilite = color.yellow;
var oDoc = event.target;
var aAnnts = oDoc.getAnnots({sortBy:"Author"});
for(var i=0;i<aAnnts.length;i++)
{
if(aAnnts.type == "Redact")
{
aAnnts.type = "Highlight";
aAnnts.strokeColor = colHilite;
}
}
I have tried to use this and then add some more code for the bookmarks but have failed. Looking for some help on this. Thanks
