I am creating a fee voucher for a school using C# and the main problem that I am coming across is how do I display data on PDF in organized way like:
Name: Student Name Name: Student Name Name:Student Name
A/C#: 12345 A/C#: 12345 A/C#:12345
And when I run my program this is how the data is displayed in the PDF:
Name: Student Name Name: Student Name Name:Student Name
A/C#:12345 A/C#:12345 A/C#:12345
I have tried using padleft() property but the result is same.
I have also tried the below code but none of them fulfill my requirements.
Document doc = new Document(iTextSharp.text.PageSize.A3.Rotate()); PdfWriter wri = PdfWriter.GetInstance(doc, new FileStream("Test.pdf", FileMode.Create)); doc.Open(); Paragraph para = new Paragraph($" {"Name:",-17} {"Faheel Mohammad"}"+ $" {"",-43} {""}"+ $" {"Name:",-17} {"Faheel Mohammad"}" + $" {"",-43} {""}" + $" {"Name:",-17} {"Faheel Mohammad"}"); Paragraph para2 = new Paragraph($" {"A/C #",-17} {"12345"}" + $" {"",-43} {""}" + $" {"A/C #",-17} {"12345"}" + $" {"",-43} {""}" + $" {"A/C #",-17} {"12345"}");
Can anyone help me in achieving what I need?