VB.NET

vb.net ->pdf create

2014.07.29

* Imports iTextSharp.text.pdf
Imports iTextSharp.text
Imports System.IO

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim pdfdoc As New Document()
Dim pdfwrite As PdfWriter = PdfWriter.GetInstance(pdfdoc, New FileStream("simple.pdf", FileMode.Create))


pdfdoc.Open()
pdfdoc.Add(New Paragraph("hello world 안녕하세용"))
pdfdoc.NewPage()
pdfdoc.Add(New Paragraph("hello world again"))
pdfdoc.NewPage()
pdfdoc.Add(New Paragraph("hello world again2"))
pdfdoc.NewPage()
pdfdoc.Add(New Paragraph("hello world again3"))
pdfdoc.Close()

End Sub
End Class