In my project I have to create pdf files. My requirement is I have to print first three lines in 3 paragraphs with full length and below these 3 parageraph I have to write text column by column.
Dim para3 As New Paragraph()
Dim p3 As New Phrase("Para1", FontFactory.GetFont("Arial", 10.0F, Font.NORMAL, BaseColor.BLACK))
para3.Add(p3)
para3.Add(p)
para3.FirstLineIndent = 40
para3.SpacingAfter = 10
para3.SpacingBefore = 20
Dim table7 As New PdfPTable(2)
Dim r7 As Rectangle = New Rectangle(100, 10)
table7.TotalWidth = page.Width
table7.SetWidthPercentage(New Single(1) {30, 60}, r7)
Dim cell7_11 As New PdfPCell(New Phrase("Some text", FontFactory.GetFont("Arial", 10.0F, Font.NORMAL, BaseColor.BLACK)))
Dim cell7_12 As New PdfPCell(New Phrase(" ", FontFactory.GetFont("Arial", 10.0F, Font.NORMAL, BaseColor.BLACK)))
cell7_11.Padding = 3
cell7_12.Padding = 3
table7.AddCell(cell7_11)
table7.AddCell(cell7_12)
Member
22 Points
50 Posts
Creating PDF file using Itextsharp.
Jan 29, 2015 05:09 AM|DevinderYadav|LINK
Hello Friends,
In my project I have to create pdf files. My requirement is I have to print first three lines in 3 paragraphs with full length and below these 3 parageraph I have to write text column by column.
Please guys help me,
Thanks in Advance.
All-Star
194524 Points
28081 Posts
Moderator
Re: Creating PDF file using Itextsharp.
Jan 29, 2015 05:14 AM|Mikesdotnetting|LINK
I've written some articles about using iTextSharp which will help you:
Member
22 Points
50 Posts
Re: Creating PDF file using Itextsharp.
Jan 29, 2015 07:21 AM|DevinderYadav|LINK
Thanks Mike but I tried all of this but not getting desired result.
My Requirement is.
while I am creating pdf columns are write on paragraph. Either I am able to create column by column pdf or by paragraph.
Waiting for your reply
Member
438 Points
606 Posts
Re: Creating PDF file using Itextsharp.
Feb 04, 2015 05:02 AM|mnmhemaj|LINK
Refer to this sample code: