PDF to Image - pqScan.com
C# TIFF to PDF Conversion Guide Use Free C# Demos to Convert TIFF/TIF Image File to PDF Document Online Demo Download Trial Purchase Now
C#.NET
VB.NET

How to Convert TIFF to PDF in C# .NET?

back to home  >  .NET Image to PDF SDK  >  How to Convert Image to PDF in .NET  >  Convert TIFF Image to Adobe PDF Document

Among common image file formats, different from raster images Jpeg, Jpg, Bmp, Png and Gif, Tiff /Tif image is somewhat special. It could be a file with single image page, as well as multiple image pages. Because of its multi-page feature, it has a wide range of demand to convert Tiff to PDF document than other raster image file formats.

Considering this huge demand, pqScan developer team strives hardly and develops a high performance .NET solution for C# programmers to convert TIFF/TIF image to PDF file finally. TIFF-to-PDF file conversion speed, quality and accuracy are highly guaranteed. Please refer to the following two C# programming demos according to your file conversion requirement.

Single Page TIFF Image to PDF - C# Demo

In the first place, we will introduce you how to transform and convert TIFF with single page to PDF document using free C# demo code. In this coding demo, it only needs you to input your source (.tif) image file, and then a PDF document will be generated automatically. Once you run C# code example below, you will get a single page PDF document, which has the same page size as your TIFF image.

using System;
using PQScan.ImageToPDF;

namespace TiffToPDF
{
    class Program
    {
        static void Main(string[] args)
        {
            // Generate an instance of PQScan.ImageToPDF.PDFConverter object.
            PDFConverter converter = new PDFConverter();
            
            // Choose PDF page layout. If you choose ImageSize, 
            // converted PDF page will has the same size and quality as your source image.
            converter.PageSizeType = PageSizeMode.ImageSize;

            // Set input Tiff image with single page from local file on disk.
            string[] imgFiles = new string[1] { "single-page.tif" };            

            // Set output PDF file name.
            string outFile = "single-page.pdf";

            // Get PDF from single page Tiff image.
            converter.CreatePDF(imgFiles, outFile);
        }
    }
}

Multi-page TIFF Image to PDF - C# Demo

Like converting a single page TIFF to PDF, transforming TIFF/TIF with multiple pages to PDF document is also very simple to accomplish in your C#.NET application. Our image to PDF file converter SDK for .NET is so intelligent that it can judge whether your TIFF image is multi-page or not. Definitely, if it is with multiple pages, converting it to multiple pages PDF document is a piece of cake by using well-compiled image to PDF APIs. Now, please try the following free demo code in your C# project.

using System;
using PQScan.ImageToPDF;

namespace TiffToPDF
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create an instance of PQScan.ImageToPDF.PDFConverter object.
            PDFConverter converter = new PDFConverter();

            // Set a page layout for converted PDF file. A4 is the most commonly used layout.
            converter.PageSizeType = PageSizeMode.A4;

            // Set input multi-page Tiff image from local file.
            string[] imgFiles = new string[1] { "multiple-page.tif" };            

            // Set output PDF file name.
            string outFile = "multiple-page.pdf";

            // Create PDF from multi-page Tiff image file.
            converter.CreatePDF(imgFiles, outFile);
        }
    }
}
Image to PDF Image to PDF in C# Append to PDF in C# Mixed Type to PDF in C#
I feel good to tell you that my project has finished in advance just because of your product .NET Image to PDF SDK. Thanks for providing such a great and easy to use tool! Webster Vella