C#.NET PDF-to-Image Conversion Component

Create C#.NET PDF to Image Converting & Rendering Application
Why to convert & render PDF document into image format in C#.NET imaging application? There is no fixed answer to this question. And we just list one possible reason here.
Now although we could upload PDF file to our website as a way to share information with others, many web designers are still willing to share the content via image. Because compared to PDF file, image has a much quicker transmission speed and seldom causes browser crash. Besides, compared to PDF file which is very difficult to edit, image format can be easily edited and processed with many free editors.
Then how to achieve high quality PDF to image converting performance using C#.NET code? Try this C#.NET PDF to image converting control add-on.
Convert PDF to Image Using C# Demo Code
In this section, we plan to introduce this professional .NET PDF to image converting control toolkit via a piece of sample C#.NET code. And in order to make this C#.NET PDF to image converter control add-on, a component of Yiigo.Image for .NET, work successfully in your own project, please install .NET Framework version 2.0, 3.0, 3.5, 4.0 or 4.5.
using System.IO;
using System.Drawing.Printing;
using Yiigo.Imaging;
using Yiigo.Image.Process;
using Yiigo.Image.Convert;

using YGPic Image = new YGPic();

// Convert PDF documents to image
public void ConversionImagetoPdf();
string PdfFileName = (@"C:\ yiigo_example.pdf");

int PdfPageNumber = "1";

ImageFormat ImageFormat = ImageFormat.jpg;


public void ConversionImagetoPdf(@"C:\ yiigo_example.pdf", "1", ImageFormat.jpg);

Image.Save(@"C:\ yiigo_example.jpg");
C#.NET demo code interpretations: in order to help you better use the advanced .NET PDF to image converting APIs, we here will illustrate above sample C#.NET code.
  • Line 1 C# code is used to decode and load source PDF file into your C#.NET class application as an in-memory document object. As this .NET PDF to image converting control owns unique PDF reading APIs, no external PDF editing product will be required in this step.
  • Line 2 C# code is used to define which PDF page to convert. Of course, this C#.NET PDF to image converter SDK also enables you to convert all PDF pages into corresponding separate image files.
  • Line 3 C# code is to convert selected PDF page into an image object using the .NET PDF to image converting method. Using the rich image editing & processing APIs that are encoded in this C#.NET PDF to image converter control add-on, you can customize the imaging properties of rendered image object. For instance, you could specify its size and resolution.
  • Line 4 C# code is to save and re-encode rendered image object into desired image format. In this step, this .NET PDF to image converter control add-on allows you to save rendered image file in the form of data string or memory stream.
Notes: from above explanations for C#.NET PDF to image converting sample code, you must have a general picture of this .NET PDF to image converter control. And here we want to address two additional comments.
One is about the multiple image formats that this .NET PDF to image conversion component has supported. In this C#.NET PDF to image converting tutorial, we just demonstrate a C#.NET sample code for PDF to jpeg image conversion. But this .NET PDF to image converter control add-on also supports converting PDF to other image formats, like PNG, GIF, TIFF, BMP and SVG. And you can view more image converting tutorials at this C#.NET image conversion guide page.
The other is about the source PDF file types that this C#.NET imaging control can access. Right now, as for the password protected PDF files, this .NET PDF to image converter library SDK has not yet had the capacity to access and render them.
Other Recommended C#.NET Imaging Tutorials
Apart from this C#.NET PDF to image converting tutorial, Yiigo.Imaging for .NET Conversion Support also offers a programming guide for developers to convert PDF to image using Visual Basic code.
Besides, Yiigo provides much more advanced C#.NET image programming tutorials which aim to help you process and read various document & image formats with rich imaging functions.
Imaging Solution
Yiigo.Image for .NET
Online C# Tutorial
C#: Yiigo.Image for .NETC#: How to StartC#: Doc Management SolutionC#: Web Doc ViewerC#: How to Deploy SDK
Doc & Image Formats
Advanced Functions
C#: Programming with Image SDKC#: Process ImageC#: Resize ImageC#: Crop ImageC#: Rotate ImageC#: Scale ImageC#: Flip ImageC#: Create ThumbnailC#: Create WatermarkC#: Annotate ImageC#: Callout AnnotationC#: Ellipse AnnotationC#: Freehand AnnotationC#: Hotspot AnnotationC#: Line AnnotationC#: Polygon AnnotationC#: Rectangle AnnotationC#: Rubber Stamp AnnotationC#: Text AnnotationC#: Convert ImageC#: Image to Byte ArrayC#: Image to StreamC#: Word to Image
C#: PDF to Image
C#: Draw on ImageC#: Draw Text on ImageC#: Draw Graphics on ImageC#: Barcode ReadingC#: Barcode GeneratingC#: Twain ScanningC#: OCR Recognition