Setting annotation properties inReplyTo and refType (annotation grouping)

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

benep
User
Posts: 15
Joined: Thu Dec 08, 2022 7:14 am

Setting annotation properties inReplyTo and refType (annotation grouping)

Post by benep »

Hello,

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+'"');
}
With output:

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"
Last edited by benep on Thu Feb 23, 2023 1:05 pm, edited 1 time in total.
benep
User
Posts: 15
Joined: Thu Dec 08, 2022 7:14 am

Re: Setting annotation properties inReplyTo and refType (grouping)

Post by benep »

Is there any information for grouping annotations in PDF-XCE?
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11586
Joined: Wed Jan 03, 2018 6:52 pm

Re: Setting annotation properties inReplyTo and refType (annotation grouping)

Post by Daniel - PDF-XChange »

Hello, benep

The Dev team just confirmed for me that this bug you are seeing will be resolved with the next release (367.0) which we should be seeing shortly, keep an eye out for that update.

As for general information about comment grouping, we currently do not offer such a feature natively, but we are working on a solution for this, it is planned for a future release.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com