Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need equivalent code to Create PDF file using itextsharp.


VB
Private Sub PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs)

      Dim fReportFont As System.Drawing.Font
      Dim gStringFormat As New StringFormat


      egraphics = e.Graphics
      gStringFormat.Alignment = StringAlignment.Center

      fReportFont = New System.Drawing.Font(Trim("Arial"), 35, FontStyle.Regular)

      egraphics.DrawString("Murugesh", fReportFont, New SolidBrush(Color.Black), 100, 200)

      'I need equivalent code for the above line in itextsharp



  End Sub
Posted

1 solution

This forum is for quick answers so the appropriate quick answer is to have you use iTextSharp's documentation. This is not a forum for just handing over code to you.

If you get stuck on a specific line of code let us know and we'll gladly help.
 
Share this answer
 
Comments
joshrduncan2012 18-Nov-13 10:25am    
*thumbs up* My +5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900