Convert TIFF image to PDF document

LibTiff.Net Help > Samples > Using utilities > Convert TIFF image to PDF document

This sample shows how to convert TIFF image to PDF document.

LibTiff.Net ships with Tiff2Pdf utility that can be used to convert TIFF images (including multipage ones) to PDFs.

You can setup additional convertion options like resolution and size of pages in output PDF documents.

This sample shows how to use Tiff2Pdf from your code. You can also use this utility from command line.

using System;
using System.Diagnostics;
using System.Drawing;
using System.IO;

using BitMiracle.LibTiff.Classic;

namespace BitMiracle.LibTiff.Samples
    public static class ConvertTiffToPdf
        public static void Main()
            string inputFile = @"Sample Data\multipage.tif";
            string outputFile = "output.pdf";

            string[] arguments = new string[] { "-o", outputFile, "-p", "A4", inputFile };

Visual Basic 
Imports System
Imports System.Diagnostics
Imports System.Drawing
Imports System.IO

Imports BitMiracle

Namespace BitMiracle.LibTiff.Samples
    Public NotInheritable Class ConvertTiffToPdf
        Public Shared Sub Main()
            Dim inputFile As String = "Sample Data\multipage.tif"
            Dim outputFile As String = "output.pdf"

            Dim arguments As String() = New String() {"-o", outputFile, "-p", "A4", inputFile}

        End Sub
    End Class
End Namespace