Saturday, April 5, 2014

Visual Basic .NET Tutorial 48 - How to create Lists with iTextSharp PDF ...





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
        Try
            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"))

            Dim list As New List(list.UNORDERED)
            list.IndentationLeft = 30.0F
            list.Add(New ListItem("One"))

            list.Add("Two")
            list.Add("Three")
            list.Add("Four")
            list.Add("Five")
            'pdfDoc.Add(New Paragraph("List"))
            'pdfDoc.Add(list)

            Dim romanlist As New RomanList(True, 20)
            romanlist.IndentationLeft = 30.0F
            romanlist.Add(New ListItem("One"))

            romanlist.Add("Two")
            romanlist.Add("List")
            romanlist.Add(list)
            romanlist.Add("Three")
            romanlist.Add("Four")
        
            pdfDoc.Add(New Paragraph("RomanList"))
            pdfDoc.Add(romanlist)


            pdfDoc.Close()

        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
       
    End Sub
End Class










Visual Basic .NET - iTextSharp creation of a pdf from a list

Generating PDF using ItextSharp

iTextSharp continued: lists, lines, pdf

checkbox list to itextsharp list

Tutorials on creating PDF files using Visual Basic .NET

Create PDF Files on fly in Visual Basic .NET sample code

creating pdf file in Visual Basic .NET

create pdf file from vb.net - MSDN - Microsoft‎

How to create PDF file on Visual Basic .NET or may be you know some

creating a pdf file with Visual Basic .NET - MSDN - Microsoft‎

Create Simple PDF File usingVisual Basic .NET

How to create PDF file in C#.Net  Open Source PDF Libraries in vb.net

Creating pdf files at runtime inVisual Basic .NET

.NET PDF Component - Create Convert PDF Files in Visual Basic .NET

Searches related to create pdf file c# create doc fileVisual Basic .NET create pdf file java create html c# c# itextsharp create pdf create pdf asp.net c# using itextsharp itextsharp tutorial c# itextsharp text to pdf

No comments:

Post a Comment