Convert PDF to GIF (.NET Core/Framework)
Use DynamicPDF Rasterizer for .NET to efficiently and easily convert any PDF to a GIF image.
Watch the Video
Converting a PDF to GIF
Below are the steps and sample code to convert a PDF file to GIF images.
Steps to convert PDF to GIF
- Create a
PdfRasterizer
object using the source PDF document. - 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
Install directly in Visual Studio using the NuGet Package Manager.
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
For more information, refer to the online help documentation.