Closed NataliaKravcheniaTR closed 3 weeks ago
Thank you for letting us know about this issue. We will take a look shortly. Thanks.
Thank you for reporting this issue, I can repro it. It has been put on our backlog #9471785 , the team will investigate and we will reply to you as soon as there is any progress. Thank you for your patience.
Hi. This is no bug in the annotation API. The issue is the provided index calculated using paragraph.text. This API has some limitations and is therefore not recommended to use with annotations. We were aware of this when designing the annotation API, which is why we have provided a new API (also in 1.7): paragraph.getText(), which should be used for index calculations.
Getting RichApi.Error when call insertAnnotations in footnote/endnote I've found a workaround and added it to an example.
Your Environment
Expected behavior
The annotation is inserted without error and without workaround
Current behavior
The annotations is inserted only with workaround
Link to live example(s)
Load this script in Script Lab: Click 'Setup', 'Insert annotations'
Provide additional details
Useful logs