Convert PDF to GIF
Use DynamicPDF Rasterizer for .NET to efficiently and easily convert any PDF to a GIF image. The following C# example shows you how.
Watch the Video
How to Convert a PDF to GIF
The following steps and C# sample code illustrates converting a PDF file to a GIF image.
Steps to Convert PDF to GIF
- Create a
PdfRasterizer
object using the source PDF document. - Add 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("pdf-to-bmp-output.gif", ImageFormat.Gif, ImageSize.Dpi150);
GitHub Project
Examples are provided in C# and VB.NET. Clone or view the example project at GitHub. This example contained on this page are in the following files.
- C# - PdfToImageRasterizerExample.cs
- VB.NET - PdfToImageRasterizerExample.vb
Getting Started
Get started easily by installing DynamicPDF Rasterizer for .NET through NuGet or manually. Then, refer to the documentation for more information on using and purchasing.
NuGet Package
The easiest way to install DynamicPDF Rasterizer for .NET is by obtaining the NuGet package using Visual Studio's Package Manager. You can also obtain the NuGet package by downloading it directly. Refer to the installation documentation for more information.
DynamicPDF Rasterizer Information
DynamicPDF Rasterizer for .NET is a user-friendly .NET library that quickly converts PDF documents to images. With a free Evaluation Edition to try and with flexible and royalty-free licensing options, why not start using DynamicPDF Rasterizer for .NET today!