How to add multiple quads to a single annotation?
hello.
question: can add multiple quads single annotation? if so, hoping find out how.
task: highlight (with comment) full sentences or paragraphs in pdf.
problem: cannot find way add more 1 'quad' single annotation. if sentence spans 3 lines seems need 3 separate quads somehow linked , act 1 (i.e. if user deletes 1 quad, others deleted too). 1 big highlight not suffice sentence may cover 2.5 lines.
overall script structure: have script provides range of words need highlighted 1 group (e.g. nth word 12 25, , 28 35). obtain quad of each word within range , create single quad covers many of words possible. however, each new line require new quad. once have quads create single annotation, single comment, , multiple quads.
what have tried: have done plenty of searching (with many different approaches) no luck. found post titled 'how combine quads?' couldn't see working solution. tried many different forms of code, following being logical (the code replica because don't have acrobat on machine); nothing has worked far.
var quadarray = new array();
quadarray[0] = this.getpagenthwordquads(1, 2);
quadarray[1] = this.getpagenthwordquads(1, 6);
var annot = this.addannot({
page: 1,
type: "highlight",
quads: quadarray;
author: "test",
contents: "second , fifth word on second page"
});
this first post, please let me know if have left out important information. usual, appreciated.
thanks
have looked @ definition of quads property of annotation in acrobat sdk?
More discussions in JavaScript
adobe
Comments
Post a Comment