Examples

Convert PDF to TIFF (.NET Core/Framework)

The DynamicPDF Rasterizer for .NET product can rasterize PDFs to any common image format. In the following example, you convert a PDF document to an tiff image.

Watch the Video

Converting a PDF to TIFF

Download the NuGet package and GitHub project to get started. The following steps illustrate converting a PDF to a TIFF image.

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 file as Tiff, the desired DPI and file path to save the image.

Sample code - C#

PdfRasterizer rasterizer = new PdfRasterizer("doc-a.pdf");
rasterizer.Draw("EachPage.tiff", ImageFormat.TiffWithLzw, ImageSize.Dpi150);

Convert PDF to Multipage TIFF

You can create a multipage TIFF from a PDF using the DrawToMultiPageTiff method of the PdfRasterizer class.

Steps to convert PDF to Multipage 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#

PdfRasterizer rasterizer = new PdfRasterizer("doc-a.pdf");
rasterizer.DrawToMultiPageTiff("output.tiff", ImageFormat.TiffWithCcitGroup4, ImageSize.Dpi150);

TIFF Image Formats

The following image formats available for TIFF image conversion include,

  • ImageFormat.TiffWithLzw,
  • ImageFormat.TiffWithCcitGroup4,
  • and ImageFormat.TiffWithCcitGroup3.

For more information, refer to the ImageFormat class.

GitHub Project

Clone or view the example project at GitHub. This example on this page is in the PdfToImageRasterizerExample.cs file.

Clone or View Example Project on GitHub

Getting Started

The NuGet package and an example project are provided to get started.

NuGet Package

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

NuGet Package ID: ceTe.DynamicPDF.Rasterizer.NET

Install directly in Visual Studio using the NuGet Package Manager.

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 22 Years)
  • Free Evaluation
  • .NET Core Support (Most Products)
  • Flexible Licensing

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