Shape and HyperLink is not getting rendered in Word Online Version

Hi, I have a requirement to add an image and On click of that image jump to particular Bookmarked section in Word document. I have below code which serves the purpose in Word Desktop version but the images and hyperlink is not getting rendered when this code gets executed in Word Online version.

Could you please let me know if there is any other way which I can try that works both in Word desktop and Online version?

string imagePath = "DocFile/HeadnoteDown.png";
Shape shape = builder.InsertImage(imagePath);
shape.ScreenTip = hyperlinkScreenTip;
shape.HRef = string.Format("#{0}", bookmarkName);

Thanks.

@KCSR I cannot reproduce your issue (I’m using Aspose.Words v23.2.0), this is the code that I ran:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
string imagePath = "C:\\Temp\\img.png";
Shape shape = builder.InsertImage(imagePath);
shape.ScreenTip = "test";
shape.HRef = "https://google.com";

doc.Save("C:\\Temp\\out.docx");