Examples

Convert PDF to GIF (.NET Core/Framework)

Converting PDF files to GIF images is a very simple task using DynamicPDF Rasterizer for .NET. It is a very efficient and easy to use API to rasterize PDFs to images.

How to Convert PDF to GIF

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

Steps to convert PDF to GIF

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

Sample code - C#

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

rasterizer.Draw("output.gif", ImageFormat.Gif, ImageSize.Dpi150);

Getting Started

NuGet Package

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

NuGet Package ID: ceTe.DynamicPDF.Rasterizer.NET

Example Project

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

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!