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)

            


Latest News

Dec 4th, 2023

ExpertPdf HtmlToPdf Converter v18.1.0 was released.

read more
Mar 30th, 2023

ExpertPdf Pdf To Image Converter v8.0.0 was released.

read more

Pdf Library for .NET

ExpertPDF Html To Pdf Converter

Html to Pdf asp.net

"HTML to PDF is a quality component that is clearly valuable to any Web developer in need of an easy and flexible way to generate PDF files."

Steve C. Orr - MCSD, Microsoft MVP in ASP.NET

more testimonials
customers list

With ExpertPdf you can convert html to pdf in .NET.

Professional aspx to pdf converter, ExpertPdf works with Microsoft Azure if used in a virtual machine or a cloud service.

Copyright 2024. Outside Software Inc.