Search Results for

    Show / Hide Table of Contents

    Class ImageType

    Image file formats for converting PDF pages to images. Choose format based on quality needs, file size, and compatibility requirements.

    // Convert PDF to high-quality PNG images:
    pdf.RasterizeToImageFiles("page_*.png", ImageType.Png);
    
    // Convert to JPEG for smaller file sizes:
    pdf.RasterizeToImageFiles("image_*.jpg", ImageType.Jpeg, 90);
    
    // Create multi-page TIFF for archiving:
    pdf.RasterizeToImageFiles("document.tiff", ImageType.MultiPageTiff);
    
    // Let file extension determine format:
    pdf.RasterizeToImageFiles("output.png", ImageType.Default);

    See: https://ironpdf.com/how-to/pdf-to-image/

    Inheritance
    System.Object
    ImageType
    Namespace: IronPdf.Imaging
    Assembly: IronPdf.dll
    Syntax
    public sealed class ImageType : Enum

    Fields

    Bitmap

    Windows Bitmap format (.bmp). Large files but pixel-perfect quality. Best for Windows-only applications requiring lossless images.

    // High quality, large file size:
    pdf.RasterizeToImageFiles("page_*.bmp", ImageType.Bitmap);
    Declaration
    public const ImageType Bitmap
    Field Value
    Type Description
    ImageType

    Default

    Auto-detects format from file extension (.png, .jpg, etc). Falls back to PNG if extension not recognized.

    // Extension determines format:
    pdf.RasterizeToImageFiles("page.jpg", ImageType.Default);  // JPEG
    pdf.RasterizeToImageFiles("page.png", ImageType.Default);  // PNG
    pdf.RasterizeToImageFiles("page", ImageType.Default);      // PNG (default)
    Declaration
    public const ImageType Default
    Field Value
    Type Description
    ImageType

    Gif

    GIF format with 256 color limit. Small files for simple graphics. Best for basic images with few colors. Not recommended for photos.

    // Simple graphics only:
    pdf.RasterizeToImageFiles("simple_*.gif", ImageType.Gif);
    Declaration
    public const ImageType Gif
    Field Value
    Type Description
    ImageType

    Jpeg

    JPEG format for photos and complex images. Smaller files with adjustable quality. Best for web display, emails, or when file size matters.

    // Compress for web use (quality 0-100):
    pdf.RasterizeToImageFiles("web_*.jpg", ImageType.Jpeg, 85);
    Declaration
    public const ImageType Jpeg
    Field Value
    Type Description
    ImageType

    MultiPageTiff

    Multi-page TIFF combining all PDF pages into one file. Perfect for document management systems and fax transmission.

    // All pages in single TIFF:
    pdf.RasterizeToImageFiles("complete.tiff", ImageType.MultiPageTiff);
    // Result: One TIFF file containing all pages
    Declaration
    public const ImageType MultiPageTiff
    Field Value
    Type Description
    ImageType

    Png

    PNG format with lossless compression and transparency support. Best for screenshots, diagrams, text, or when quality is critical.

    // High quality with transparency:
    pdf.RasterizeToImageFiles("page_*.png", ImageType.Png);
    Declaration
    public const ImageType Png
    Field Value
    Type Description
    ImageType

    Tiff

    TIFF format for professional printing and archiving. Each PDF page becomes a separate TIFF file.

    // Individual TIFF files per page:
    pdf.RasterizeToImageFiles("page_*.tiff", ImageType.Tiff);
    Declaration
    public const ImageType Tiff
    Field Value
    Type Description
    ImageType

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    IronPDF_for_dotnet_log2o
    Blue key in circleGet started for FREE
    No credit card required
    Test in a live environment

    Test in production without watermarks.
    Works wherever you need it to.

    Fully-functional product

    Get 30 days of fully functional product.
    Have it up and running in minutes.

    24/5 technical support

    Full access to our support engineering team during your product trial

    Grey key in circleGet started for FREE
    The trial form was submitted successfully.
    Calendar in circleBook Free Live Demo
    No contact, no card details, no commitments Book a 30-minute, personal demo.
    Here's what to expect:

    A live demo of our product and its key features

    Get project specific feature recommendations

    All your questions are answered to make sure you have all the information you need. (No commitment whatsoever.)

    Grey key in circleBook Free Live Demo
    Your booking has been completed Check your e-mail for confirmation
    Support Team Member 6 related to The C# PDF Library Support Team Member 14 related to The C# PDF Library Support Team Member 4 related to The C# PDF Library Support Team Member 2 related to The C# PDF Library
    Online 24/5
    Need help? Our sales team would be glad to help you.
    Try the Enterprise Trial
    ironpdf_for_dotnet_log2o
    Key in blue circle
    Get your free 30-day Trial Key instantly.
    bullet_checkedNo credit card or account creation required
    Key in blue circle
    Get your free 30-day Trial Key instantly.
    Blue key in circleNo credit card or account creation required
    Green Check in orange circle
    The trial form was submitted successfully.
    badge_greencheck_in_yellowcircle
    Thank you for starting a trial

    Please check your email for the trial license key.

    If you don’t receive an email, please start a live chat or email support@ironsoftware.com

    Install with NuGet
    View Licensing
    • Logo Aetna
    • Logo NASA
    • Logo GE
    • Logo Porsche
    • Logo USDA
    • Logo Qatar
    Join Millions of Engineers who’ve tried IronPDF