PRODUCTS   DOWNLOAD PURCHASE SUPPORT BLOG  COMPANY  
 
Key Features
PDF to Word, RTF
PDF to Word, DOCX
>>PDF to Images: JPEG, TIFF
PDF to HTML
PDF to Excel new!
PDF to XML new!
PDF to Text
Download trial
Purchase
Online-demo
Documentation
What's New
Tutorials & Videos
How to convert PDF to JPG with high Quality in C# and .Net.
How to convert PDF to Word in C#.
How to convert PDF to Jpeg in C#.
Extract Text from PDF in C#.
How to convert PDF to Multipage TIFF in C#.
How to convert PDF to Black-White Multipage TIFF in C#.
Delphi.Net – How to convert PDF to Word.
How to convert a password protected PDF document.

"PDF to Image, Jpeg, multipage TIFF, PNG in C# and VB.Net"

PDF to Image, Jpeg, multipage TIFF, PNG in C# and VB.Net

Introduction

     Now let's get to know another benefit of the library. PDF Focus .Net offers great abilities to rasterize PDF documents to images: JPEG, PNG, TIFF, multipage-TIFF, Bitmap, GIF and, furthermore, into "System.Drawing.Image". It offers developers a set of actionable properties to convert PDF to images with the desired level of quality, tune up the color depth, and specify dpi and image format. To show how PDF Focus .Net really lessens the burden of coding, assume that you want to convert a multipage PDF into a set of JPEG pages in C#:
SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();

f.OpenPdf(@"e:\Computer Magazine.pdf");

if (f.PageCount > 0)
{
    //Set image properties: Jpeg, 200 dpi
    f.ImageOptions.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg;
    f.ImageOptions.Dpi = 200;

    //Save all PDF pages as page1.jpg, page2.jpg ... pageN.jpg
    f.ToImage(@"e:\Pictures\, "page");
}


Download PDF Focus .Net Online Demo


Have a Question?

You have a question, need a support or a code example: ask our support team at support@sautinsoft.com. We will help you quickly and with pleasure.



What PDF Focus .Net gives me:

  1. Save time and cost of the product development. The writing of own PDF converter in C# requires a lot of days of hard work and takes approx 100 000 C# code lines. PDF Focus .Net will save a lot of my time and I'll need only to add the reference to "SautinSoft.PdfFocus.dll" and write 3-4 C# code lines.

  2. The one product provides me by set of API to convert PDF at various formats at once: Word, DOCX, RTF, Excel, HTML, Text, Multipage TIFF, Jpeg, PNG.

  3. Because of this is absolutely standalone PDF library, my clients don't need to have Adobe Acrobat, MS Word, Excel or other software.

  4. My software will have the one of the fastest API to convert PDFs inside, you may check this.

  5. I can select the any of product editions: Total, Office, HTML and Picasso. This saves my money. Let's us say, that I'm looking for only the API to convert PDF to HTML and don't need other features. Given this point, I can purchase the "HTML" edtion of PDF Focus .Net. It's much cheaper than competitor's price.

  6. The one time price. I pay a one time and can use «PDF Focus .Net» for a whole life without any additional fees. My license will never expires.

  7. As bonus, I get unlimited technical support during a whole life for free and independently of the date of my purchasing.

Some examples to convert PDF to various Images in C# and VB.Net

1. Convert PDF file to JPEG using C#:

            SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
            f.OpenPdf(@"c:\Document.pdf");

            if (f.PageCount > 0)
            {
                //Save all PDF pages to jpeg images and put them in ArrayList, set 120 dpi
                f.ImageOptions.Dpi = 120;
                f.ImageOptions.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg;
                ArrayList images = f.ToImage();

                //Next manipulate with Jpeg in memory or save to HDD, open in a viewer
            }
2. Convert PDF file to Multipage TIFF file with 300 dpi in C#:
            SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
            f.OpenPdf(@"c:\Document.pdf");

            if (f.PageCount > 0)
            {
                //Save to multipage TIFF file with 300 dpi
                f.ImageOptions.Dpi = 300;
                f.ToMultipageTiff(@"c:\Result.tiff");
            }
3. Convert 1st page of PDF document to System.Drawing.Image object in C#:
            SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
            f.OpenPdf(@"c:\Document.pdf");

            if (f.PageCount > 0)
            {
                //Save 1st page to System.Drawing.Image with 120 dpi
                f.ImageOptions.Dpi = 120;
                System.Drawing.Image img = f.ToDrawingImage(1);
            }
4. Convert 2nd page of PDF document to PNG in ASP.Net-VB.Net:
        Dim f As New SautinSoft.PdfFocus()

        f.OpenPdf(FileUpload1.FileBytes)

        If f.PageCount > 1 Then

            'Let's convert 2nd page from PDF document
            f.ImageOptions.Dpi = 120;
            f.ImageOptions.ImageFormat = System.Drawing.Imaging.ImageFormat.Png
            Dim image() As Byte = f.ToImage(2)
            'show image
            Response.Buffer = True
            Response.Clear()
            Response.ContentType = "image/jpeg"
            Response.AddHeader("Content-Disposition:", "attachment; filename=Page2.png")
            Response.BinaryWrite(image)
            Response.Flush()
            Response.End()
        End If

5. Convert 1st and 5th pages of PDF document to Bitmap in C#:
            SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
            f.OpenPdf(@"c:\Document.pdf");

            if (f.PageCount > 4)
            {
                //Save 1st page to Bitmap 200 dpi
                f.ImageOptions.Dpi = 200;
                System.Drawing.Bitmap bmp1 = (System.Drawing.Bitmap)f.ToDrawingImage(1);
                System.Drawing.Bitmap bmp5 = (System.Drawing.Bitmap)f.ToDrawingImage(5);
            }
If anyone needs a code sample in C#, VB.Net, PHP etc "How to convert PDF to Image", email us at support@sautinsoft.com or ask at Online Chat (right-bottom corner of this page). We'll help you certainly!


Requrements and Technical Information

     Requires only .Net 4.0 or higher. Our product is compatible with all .Net languages and supports all Operating Systems where .Net Framework can be used. Note that PDF Focus .Net is entirely written in managed C#, which makes it absolutely standalone and an independent library.



Reasonable prices

     The library offers developers the high quality conversion at reasonably prices. The main point of interest is that PDF Focus .Net is less expensive than all of its more or less popular counterparts. For example, a single license for PDF Focus .Net - HTML Edition cost $399 and the Total Edition starts from $578.


Download

To see this functionality firsthand, download the freshest «PDF Focus .Net» with code examples, 16.7 Mb.

 
 
Products Downloads Support Company
Buy now
Follow us on Google Plus SautinSoft on Facebook SautinSoft on Twitter SautinSoft on Youtube Our Blog
Copyright © 2002 - 2017 SautinSoft (started from sautin.com). All rights reserved.