We are trying to insert field code to middle of the paragraph.
We are seeing that -
DocumentBuilder.moveToParagraph(int paragraphIndex, int characterIndex)but after seeing the Parameters:
characterIndex- The index of the character inside the paragraph.
Currently can only specify 0 to move to the beginning of the paragraph or -1 to
move to the end of the paragraph.
characterIndex could not be the character index we need. So, it means
DocumentBuilder.moveToParagraph, could lead us up to the
beginning or end of the paragraph but our requirement is
to reach to the specified character index in the paragraph.
For ex: “Hello World” is text in paragraph and suppose it is 6th paragraph, using
DocumentBuilder.moveToParagraph(5, 3), we need to reach at
Could you please suggest us some way (could be alternative) for the