TIFF/TIF to PDF in C# (.NET)

TIFF to PDF or multiplage TIFF to PDF conversion can be done using the DynamicPDF Converter and DynamicPDF Generator product.

How to Convert TIFF to PDF

Below are steps and sample code to convert TIFF to PDF using the DynamicPDF Converter for .NET product.

Steps to Convert TIFF to PDF Using Converter for .NET

  1. Create an ImageConverter object by passing the TIFF file name.
  2. Invoke the Convert method on the ImageConverter and specify the output filename to be saved.

Sample code - C#

ImageConverter image = new ImageConverter("MyTifFile.tif");

image.Convert("output.pdf");

The ImageConverter class can be used if advanced ImageConversionOptions are required. Otherwise the static Convert method can be used from the Converter class by passing the source image path and output PDF path.

How to Convert TIFF to PDF Using DynamicPDF Generator

TIFF or multi page TIFF can be converted to PDF using the TiffFile class from the Generator product. The Generator product gives more control on individual page elements if any are being added to the PDF in additiong to from converting TIFF to PDF.

ImageData can also be reused if images are being added individually using the Image class to the PDF to save memory and to reduce the output PDF size. Please refer to the ImageReuse topic from our help documentation for more information.

Steps to Convert TIFF/Multipage TIFF to PDF using Generator

  1. Create a TiffFile object by passing the TIFF file name.
  2. Create a Document object from the TiffFile.
  3. Invoke the Draw method on the Document to output the PDF.

Sample code - C#

TiffFile tiffFile = new TiffFile("MyMultipageTiff.tif");

Document document = tiffFile.GetDocument();

document.Draw("output.pdf");

Getting Started

NuGet Package

DynamicPDF Generator is available on NuGet and is part of the ceTe.DynamicPDF.CoreSuite.NET package. The Core Suite package includes Generator, Merger and ReportWriter.

Nuget Logo
NuGet Package ID: ceTe.DynamicPDF.CoreSuite.NET

Example Project

An example project showing this functionality can be cloned or viewed from GitHub:

GitHub Logo
Clone or View Example Project on GitHub

DynamicPDF Converter and Generator Information

More information can be found here:

Available in other platforms

DynamicPDF Generator is available for the following platforms. Refer to the respective product pages for more details.

Why Choose DynamicPDF?

  • Lots of Features
  • Easy to Use
  • Great Support
  • Efficient Performance
  • Product Maturity (Over 17 Years)
  • Free Evaluation
  • .NET Core Support (Most Products)
  • Flexible Licensing

We’re Not The Only Ones That Think We’re Great!