Page 1 of 1

[javascript] add ability for a script to change doc.selectedAnnots

Posted: Fri Jun 14, 2024 11:58 pm
by Mathew
When built-in tools add annotations, they typically remain selected afterwards. However, with Javascript, it's currently not possible to change which annotation are selected. I don't know what's going on in the background, so whether allowing write to doc.selectedAnnots or adding .select(True/False) or some such method to annotations is more feasible.

Just a wish :wink:

Re: [javascript] add ability for a script to change doc.selectedAnnots

Posted: Mon Jun 17, 2024 4:32 pm
by Daniel - PDF-XChange
Hello, Mathew

Thank you for the suggestion, I have brought this along to the Dev team and will let you know if we make a ticket for this item.

RT#6970: FR: Allow JS change selected annots and modify Z-order

Kind regards,

Re: [javascript] add ability for a script to change doc.selectedAnnots

Posted: Fri Jan 31, 2025 10:57 pm
by ⚜ Kenny Lemens, P.E. ᵂᴵ
Greetings,

Has there been any progress on RT#6970? This is a feature I would also enjoy.

May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ

Re: [javascript] add ability for a script to change doc.selectedAnnots

Posted: Mon Feb 03, 2025 9:37 pm
by Daniel - PDF-XChange
Hello, ⚜ Kenny Lemens, P.E. ᵂᴵ

From what I can see here the ticket is still in progress, but it is not something that has an ETA I can offer as of yet.

Kind regards,