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.
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,
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
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,
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