We're having an issue getting the text content of highlight annotations in PDF files. We're using javascript to parse the annotations and their properties. All other properties seem correct, i..e page, color and quads. But the contents and richContents properties are always empty, and we're not sure why. We're hoping you can help. This is the javascript we are using to log the annotation properties to console:
Code: Select all
var annots=this.getAnnots();
if(annots!=null){
for(var i=0;i<annots.length;i++){
var ann = annots[i];
var p = ann.getProps();
for ( o in p )
console.println( o + " : " + p[o] );
}
}
Code: Select all
getPageNthWord
Thanks,