Hi Team, I am getting below error while adding black text in bookmark. Could you please help.
Caused by: java.lang.IllegalArgumentException: The reference node is not a child of this node.
at com.aspose.words.CompositeNode.zzXWH(Unknown Source)
at com.aspose.words.CompositeNode.insertAfter(Unknown Source)
at com.aspose.words.Bookmark.zzVV9(Unknown Source)
at com.aspose.words.Bookmark.zzY1x(Unknown Source)
at com.aspose.words.Bookmark.setText(Unknown Source)
I have attached sample code and doc to help with debugging.
We are using latest version : 22.2.0
sample.zip (531.6 KB)