Text Position AND Wrapping at the same time in ASPOSE PDF (C#)

This code will get me the text I want in the position I want on the page BUT NOT wrapped:

        TextFragment tf = new TextFragment(text);
        TextParagraph tp = new TextParagraph();

        tf.TextState.Font = FontRepository.FindFont("Times New Roman");
        tf.TextState.FontSize = font_size;
        tf.TextState.ForegroundColor = color;
        tf.HorizontalAlignment = align;
        tf.Position = new Position(h_position, v_position);

        tp.Position = tf.Position;
        tp.AppendLine(tf);
        tp.HorizontalAlignment = align;

        TextBuilder tb = new TextBuilder(p);
        tb.AppendParagraph(tp);

This code will get me the text I want wrapped BUT NOT positioned correctly on the page…

        TextFragment tf = new TextFragment(text);

        tf.TextState.Font = FontRepository.FindFont("Times New Roman");
        tf.TextState.FontSize = font_size;
        tf.TextState.ForegroundColor = color;
        tf.HorizontalAlignment = align;
        tf.Position = new Position(h_position, v_position);

        p.Paragraphs.Add(tf);

Can I have both positioning and wrapping working at the same time?
Thanks

@JBLgovcon

Would you please share the generated PDFs using both code snippets for our reference? We will test the scenario in our environment and address it accordingly.

Handbook_NoPosition.pdf (68.0 KB)
Handbook_NoWrap.pdf (67.8 KB)

@JBLgovcon

Please specify the text formatting for the TextParagraph as below:

// specify word wraping mode
tp.FormattingOptions.WrapMode = TextFormattingOptions.WordWrapMode.DiscretionaryHyphenation;
// set subsequent lines indent
tp.SubsequentLinesIndent = 20;

Also, you do not need to set Position for TextFragment when you are setting it for TextParagraph.

PS: We used 23.5 version of the API to test the case using suggested options.

This code works, BUT …
What does this [tp.SubsequentLinesIndent = 20] mean in this context? It works and I’m happy for that, but how do I know what value this might need to be in other contexts? I looked up the API, and there is no useful info given.
Thanks!

@JBLgovcon

It is a value to indent the text from left side. For example, please check the attached image: image.png (27.5 KB)