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