Create Hyperlink with Multiple Paragraphs Text using Java

Hello,

I am unable to create a hyperlink field, which is spanned across multiple paragraphs.
I have tried to do this with DocumentBuilder or simply creating nodes but unsuccessfully.
Attaching word file where simple DOCX with hyperlink in 3 paragraphs is created.

field_across_multiple_paragraphs.zip (10.5 KB)

More detailed comment:
I could not find any information regarding how FieldStart , FieldSeparator and FieldEnd could be put across multiple paragraphs.
DocumentBuilder creates field at the cursor level, paragraph.insertField(…) also inserts a whole field.

Java version: 11
Aspose.Words version: 20.12

@PROCUREMENT2

Please use the following code example to create the hyperlink that is spanned across multiple paragraphs.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

builder.getFont().setColor(Color.BLUE);
builder.getFont().setUnderline(Underline.SINGLE);
builder.insertHyperlink("Test_1\rTest_2\rTest_3", "http://www.aspose.com", false);
builder.getFont().clearFormatting();

doc.save(MyDir + "20.12.docx");

@tahir.manzoor
That worked. Thanks!