PDF to TIFF in C# (.NET Core)

PDF files can be converted to a multipage TIFF image or TIFF images using just a few lines of code. The DynamicPDF Rasterizer for .NET product can rasterize PDFs to any common image format.

Convert PDF to TIFF

Below are the steps and sample code to convert a PDF file to TIFF images.

Steps to convert PDF to TIFF

  1. Create a PdfRasterizer object using the source PDF document.
  2. Call the Draw method by specifying the image type as Tiff, DPI and file path to save images.

Sample code - C#

PdfRasterizer rasterizer = new PdfRasterizer("doc-a.pdf");

rasterizer.Draw("EachPage.tiff", ImageFormat.TiffWithLzw, ImageSize.Dpi150);

Convert PDF to multipage TIFF

A multipage TIFF can be created from a PDF by using the DrawToMultiPageTiff method of the PdfRasterizer class.

Steps to convert PDF to TIFF

  1. Create a PdfRasterizer object using the source PDF document.
  2. Call the DrawToMultiPageTiff method by specifying the type of TIFF, DPI and file path to save image.

Sample code - C# (Multipage TIFF from PDF)

PdfRasterizer rasterizer = new PdfRasterizer("doc-a.pdf");

rasterizer.DrawToMultiPageTiff("output.tiff", ImageFormat.TiffWithCcitGroup4, ImageSize.Dpi150);

TIFF Image Formats

Here is the list of image formats available for PDF to TIFF image conversion.

  • ImageFormat.TiffWithLzw
  • ImageFormat.TiffWithCcitGroup4
  • ImageFormat.TiffWithCcitGroup3

Getting Started

NuGet Package

DynamicPDF Rasterizer for .NET on NuGet with package ID ceTe.DynamicPDF.Rasterizer.NET.

Nuget Logo
NuGet Package ID: ceTe.DynamicPDF.Rasterizer.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 Rasterizer Information

More information can be found here:

Why Choose DynamicPDF?

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

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