Can someone help me to understand what is that I am doing wrong? You can see that the text on page 2, page 13...etc are cut off between pages. I have attached the input RTF file and the output PDF document, and the C# code I used.
.NET Code Used (Copied from Sample)
PdfDocument pdf = new PdfDocument();
PdfUnitConvertor unitCvtr = new PdfUnitConvertor();
PdfMargins margin = new PdfMargins();
margin.Top = unitCvtr.ConvertUnits(2.54f, PdfGraphicsUnit.Centimeter, PdfGraphicsUnit.Point);
margin.Bottom = margin.Top;
margin.Left = unitCvtr.ConvertUnits(3.17f, PdfGraphicsUnit.Centimeter, PdfGraphicsUnit.Point);
margin.Right = margin.Left;
PdfPageBase page = pdf.Pages.Add(PdfPageSize.A4, margin);
var rtf = System.IO.File.ReadAllText(@"C:\Users\Jay\Desktop\United States of America.rtf");
page.LoadFromRTF(rtf, page.Canvas.ClientSize.Width, true);
pdf.SaveToFile(@"C:\Users\Jay\Desktop\DELETE\United States of America.pdf");