How to Start Convert PDF Work with PDF Modules PDF Document PDF Pages Text Image Graph & Path Annotation, Markup & Drawing Redaction Security Digital Signature Forms Watermark Bookmark Link File Attachment File Metadata Printing Work with Other SDKs Barcode read Barcode create OCR Twain

PDF Tiff Converter VB.NET Library
How to convert multipage tiff image to PDF in vb.net Windows Forms application


Online VB.NET Tutorial for Converting Tiff Image to PDF Document in VB.NET Project





In this vb.net tutorial, you will learn how to convert multipage Tiff image to PDF file using VB.NET code in .NET Windows Forms application.

  • Convert multipage Tiff to multipage PDF file
  • Convert PDF through byte array, or Stream objects
  • Easy to develop in Windows Forms, WPF applications, ASP.NET using VB.NET

How to convert multipage Tiff to PDF file using Visual Basic .NET

  1. Download XDoc.PDF Converter VB.NET library
  2. Install vb library to convert Tiff image to PDF file
  3. Step by Step Tutorial












Except PDF to Tiff conversion, RasterEdge SDK has related Tiff to PDF converting control, which supports conversion from Tiff image to PDF document in VB.NET program. This page will guide you with VB.NET sample code to finish Tiff to PDF conversion work. Tiff image with single page or multiple pages is supported.

Furthermore, if your application is C# based, you can go to this page for more information How to convert Tiff to PDF using C#





How to convert multipage Tiff to PDF using VB.NET


The following steps and VB source code explain how to convert multipage Tiff file to PDF document using Visual Basic .NET Code.



  1. Create a new ImageOutputOption object.
  2. Set ImageOutputOption Color, Compression, Resolution properties
  3. Create a new PDFDocument object from an existing PDF file
  4. Convert multipage Tiff to PDF file with conversion options applied


Dim inputFilePath As String = "C:\1.pdf"
Dim outputFilePath As String = "C:\output.tif"

Dim options As ImageOutputOption = New ImageOutputOption()
' Output image Is color.
options.Color = ColorType.Color
' Use LZW compression in TIFF file.
options.Compression = ImageCompress.LZW
' Set resolution to 300 dpi for each page.
options.Resolution = 300

' Open file
Dim doc As PDFDocument = New PDFDocument(inputFilePath)
' Convert whole document to TIFF file
doc.ConvertToDocument(DocumentType.TIFF, outputFilePath, options)






How to convert multiple Tiff images to PDF files using VB.NET


The following VB source code explain how to convert all tiff files under one directory to pdf files using vb.net.



Dim inputDirectory As String = "C:\input\"
Dim outputDirectory As String = "C:\Output\"
Dim files() As String = Directory.GetFiles(inputDirectory, "*.tif")

' convert tiff document to pdf one by one.
For Each filePath As String In  files
       Dim doc As TIFFDocument = New TIFFDocument(filePath)
       Dim startIdx As Integer = filePath.LastIndexOf("\")
       Dim endIdx As Integer = filePath.LastIndexOf(".")
       Dim docName As String = filePath.SubString(startIdx + 1, endIdx - startIdx - 1)
       ' Convert it to PDF document.
       doc.ConvertToDocument(DocumentType.PDF, outputDirectory + docName + ".pdf")
Next