Replacing text with a html link in a word document

Hi,

I am trying to replace text in a word document with a hyperlink using aspose.words for java. The html that replaces some text would be of the type “Click here”.

Also can I replace a hyperlink with an image directly?

Regards,

Forgot to add that we are using coldfusion as the programming language and have a license for aspose.words for java.

@Batrinux,

Thanks for your inquiry.

Please implement IReplacingCallback interface, move the cursor to the matched node, and insert the hyperlink. Please refer to the following article:
Find and Replace

The hyperlink is imported as Filed into Aspose.Words’ DOM. Please move the cursor to the field using DocumentBuilder.MoveToField method and insert the image.

Could you please share the Java version that you are using at your end? Thanks for your cooperation.