Hyperlink insertion problem - DOCX (2991)

Hello,

I am writing to you about the problem we encountered in working with MSO Word document using the Aspose Words for Java library (v23.2.0).

When we try to insert hyperlink at specific locations, an exception is thrown - java.lang.IllegalArgumentException: Cannot insert a node of this type at this location.

In the attachment below, you can find the ZIP file with test code and source DOCX file.

Best regards!
Aleksandar

test code and files (2991).zip (91.5 KB)

@zpredojevic In your code you are trying to insert hyperlink inside a group shape. Group shapes children can be only shapes or other group shapes.
If you would like to assign hyperlink to a shape, you can use ShapeBase.HRef property.