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
- Create a
PdfRasterizer
object using the source PDF document. - 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
- Create a
PdfRasterizer
object using the source PDF document. - 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.
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
.
Install directly in Visual Studio using the NuGet Package Manager.
DynamicPDF Rasterizer Information
More information can be found here: