troubleshooting Question

Create PDF with ITextSharp DLL

Avatar of kdeutsch
kdeutschFlag for United States of America asked on
Visual Basic.NETASP.NET.NET Programming
7 Comments1 Solution984 ViewsLast Modified:
Trying to create a PDF document with the reference site of 4guys from Rolla and am trying to replicate what they are doing however no document comes up for me, none is produced, what do i need to do to get a PDF to come up.

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

 Protected Sub lnkPrint_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkPrint.Click
        Dim document = New Document(PageSize.A4, 50, 50, 25, 25)

        Dim output = New FileStream(Server.MapPath("MyFirstPDF.pdf"), FileMode.Create)
        Dim writer = PdfWriter.GetInstance(document, output)

        Dim welcome As Paragraph = New Paragraph("Hello World")


    End Sub

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros