PDF to Image - pqScan.com
VB.NET TIFF to PDF Adding TIFF Image to PDF document in VB.NET Online Demo Download Trial Purchase Now
C#.NET
VB.NET

How to Convert TIFF to PDF in VB.NET?

back to home  >  Image to PDF SDK  >  How to Convert Image to PDF  >  TIFF to PDF

Do you have an urgent requirement to convert TIFF image to PDF document, especially convert multi-page TIFF to PDF document?

There is a good news! The pqScan Image to PDF SDK in .NET can help you transform your TIFF images and changing them to be a PDF document. Not only single page TIFF, but also multiple pages TIFF are supplied perfectly to change to PDF files.

In this article, we will introduce you how to turn TIFF image into PDF document in VB.NET. The following two examples are both used input source image from file stream.

Single page TIFF Image to PDF - Visual Basic sample

Without redundant properties and APIs, pqScan Image to PDF component provides brief and practical methods to meet your demand.

Imports System.IO
Imports PQScan.ImageToPDF

Namespace TiffImageToPDF
    Class Program
        Private Shared Sub Main(args As String())
            'Create an instance of PQScan.ImageToPDF.PDFConverter object.
            Dim converter As New PDFConverter()
            'Set PDF page layout, if to ImageSize, 
            'PDF page will display the original size and quality of the source image
            converter.PageSizeType = PageSizeMode.ImageSize

            'Set input image from file streams.
            Dim streams As FileStream() = New FileStream(0) {}
            streams(0) = New FileStream("single-page.tif", FileMode.Open)

            'Set output pdf file name.
            Dim outFile As String = "single-page.pdf"

            'Generate PDF from single page tiff.
            converter.CreatePDF(streams, outFile)
        End Sub
    End Class
End Namespace

Multi-page TIFF Image to PDF-- Visual Basic sample

At the same way to single page TIFF, converting multiple pages TIFF to PDF is using uncomplicated vb.net code, too. Looking at the example, it's really simple and easy!

Imports System.IO
Imports PQScan.ImageToPDF

Namespace TiffImageToPDF
    Class Program
        Private Shared Sub Main(args As String())
            'Create an instance of PQScan.ImageToPDF.PDFConverter object.
            Dim converter As New PDFConverter()

            'Set PDF page layout, A4 is most widely used.
            converter.PageSizeType = PageSizeMode.A4

            'Set input image from file streams.
            Dim streams As FileStream() = New FileStream(0) {}
            streams(0) = New FileStream("multiple-page.tif", FileMode.Open)

            'Set output pdf file name.
            Dim outFile As String = "multi-page.pdf"

            'Generate PDF from multiple page tiff.
            converter.CreatePDF(streams, outFile)
        End Sub
    End Class
End Namespace
Image to PDF Image to PDF in VB.NET Append to PDF in VB.NET Mixed type to PDF in VB.NET
I'm now using your .NET Image to PDF SDK. It is quiet easy to use and fulfill all our needs. Price is very good and customer service first rate. I'll recommend to anyone in need. Fitch Caruso