I am trying to set the annotation properties inReplyTo and refType via the Javascript console. However the changes don't apply, neither by creating a new annotation nor by setting them on an existing annotation. Also when grouping annotations in the Acrobat Reader DC UI they are also displayed and handled as group in PDF-XCE. However the property inReplyTo is still empty. The property refRype is sometimes 'Group' and sometimes still 'R'. Is there any chance grouping will be fixed/implemented any time soon? (there are even buttons in PDF-XCE for grouping and ungrouping, which also don't seem to work yet)
Sample Code:
Code: Select all
{
const annot1 = this.addAnnot({
page: 0,
type: 'FreeText',
contents: 'some text'
});
const annot2 = this.addAnnot({
page: 0,
type: 'FreeText',
contents: 'also text',
inReplyTo: annot1.name,
refType: 'Group'
});
console.println('annot1.name="'+annot1.name+'"');
console.println('case new annot: annot2.inReplyTo="'+annot2.inReplyTo+'"');
console.println('case new annot: annot2.refType="'+annot2.refType+'"');
annot2.inReplyTo = annot1.name;
annot2.refType = 'Group';
console.println('case setting prop: annot2.inReplyTo="'+annot2.inReplyTo+'"');
console.println('case setting prop: annot2.refType="'+annot2.refType+'"');
}
Code: Select all
annot1.name="8effe2de-f0cd-424e-927d73ce4bfee1a0"
case new annot: annot2.inReplyTo=""
case new annot: annot2.refType="R"
case setting prop: annot2.inReplyTo=""
case setting prop: annot2.refType="R"