Pdf To Image Converter
The ExpertPdf Pdf to Image Converter can be used in any type of .NET
application to export PDF document pages to images. The integration with
existing .NET applications is extremely easy and no installation is necessary in
order to run the converter.
The downloadable archive contains the assembly for
.NET 2.0, .NET 4.0 or above and ready-to-use samples.
The full C# and VB.NET source code
for the sample application is available in the Samples folder. The sample
application can be built with any Visual Studio version.
The result of conversion is a .NET Image object that can be further used or saved to disk in any image type the .NET framework supports.
Features
- .NET 2.0, .NET 4.0 or above development library C# and VB.NET samples
- Export PDF pages from PDF stream or a PDF file
- Specify the range of pages to be rasterized
- Convert PDF pages from password protected PDF documents
- Create thumbnails for PDF document pages
- Get the number of pages in the PDF document
- Support for .NET Framework, .NET Core, .NET 5 and .NET 6.
C# code sample
// create the converter object and set the user options
PdfToImageConverter pdfToImageConverter = new PdfToImageConverter();
if (licenseKey != null)
pdfToImageConverter.LicenseKey = licenseKey; // license key
pdfToImageConverter.ImagesFormat = imgFormat; // image format
pdfToImageConverter.ColorSpace = colorSpace; // image color space
pdfToImageConverter.StartPageNumber = startPageNumber; // start page number
pdfToImageConverter.EndPageNumber = endPageNumber; // end page number
pdfToImageConverter.Resolution = resolution; // image resolution
pdfToImageConverter.ImagesPath = outputPath; // images output path
if (password != null)
pdfToImageConverter.UserPassword = password; // PDF password
// convert the PDF pages to images
pdfToImageConverter.ConvertToImagesInFolder(pdfFileName);
VB.NET code sample
' create the converter object and set the user options
Dim pdfToImageConverter As New PdfToImageConverter()
If licenseKey IsNot Nothing Then
pdfToImageConverter.LicenseKey = licenseKey ' license key
End If
pdfToImageConverter.ImagesFormat = imgFormat ' image format
pdfToImageConverter.ColorSpace = colorSpace ' image color space
pdfToImageConverter.StartPageNumber = startPageNumber ' start page number
pdfToImageConverter.EndPageNumber = endPageNumber ' end page number
pdfToImageConverter.Resolution = resolution ' image resolution
pdfToImageConverter.ImagesPath = outputPath ' images output path
If password IsNot Nothing Then
pdfToImageConverter.UserPassword = password ' PDF password
End If
' convert the PDF pages to images
pdfToImageConverter.ConvertToImagesInFolder(pdfFileName)