Hi pegaso,
Thank you for your interest in Syncfusion products,
Text is overlapping We can able to avoid the text overlapping by using PdfTextLayoutResult.Remainder property.
Kindly refer the below code snippet which helps to avoid the text overlapping.
[c#]
........
RectangleF bounds = new RectangleF(new PointF(0, 10), new SizeF(page.Graphics.ClientSize.Width - 20, page.Graphics.ClientSize.Height - 10));
foreach (DataRow Dr in Dt.Rows)
{
bounds = new RectangleF(new PointF(0, result.LastLineBounds.Y + 20), new SizeF(page.Graphics.ClientSize.Width - 20, page.Graphics.ClientSize.Height - 10));
element.Font = Font_Bold11;
element.StringFormat = SF_Titolo;
element.Text = Dr["obb"].ToString();
result = element.Draw(page, bounds, layoutFormat);
bounds = new RectangleF(new PointF(0, result.LastLineBounds.Y + 10), new SizeF(page.Graphics.ClientSize.Width - 20, page.Graphics.ClientSize.Height - 10));
element.Font = Font_Regular11;
element.StringFormat = SF_Testo;
element.Text = Dr["dispo"].ToString();
result = element.Draw(page, bounds, layoutFormat);
if ((result.Remainder != null) && (result.Remainder.Length > 0))
{
page = doc.Pages.Add();
bounds = new RectangleF(new PointF(0, 10), new SizeF(page.Graphics.ClientSize.Width - 20, page.Graphics.ClientSize.Height - 10));
element.Text = result.Remainder;
result = element.Draw(page, bounds.Location, bounds.Width, layoutFormat);
}
}
Please do find the sample from the below specified location which demonstrates how to avoid the text overlapping and let us know if this helps,
http://files.syncfusion.com/support/PDF.Web/F88925/F88925.zipRegards,
Thiru