Convert PDF to Jpeg
Work with Other SDKs
Convert PDF to Jpeg
  |  
Home ›› XDoc.PDF ›› C# PDF: Convert PDF to Jpeg

C# PDF - Convert PDF to JPEG in C#.NET


C#.NET PDF to JPEG Converting & Conversion Control




Best and free adobe PDF to jpeg converter SDK for Visual Studio .NET


.NET library to batch convert PDF files to jpg image files


High quality jpeg file can be exported from PDF in .NET framework


Support .NET WinForms, ASP.NET MVC in IIS, ASP.NET Ajax, Azure cloud service, DNN (DotNetNuke), SharePoint


Turn multiple pages PDF into single jpg files respectively online


Support of converting from any single one PDF page and multiple pages


Thumbnails can be created from PDF pages


Support for customizing image size


Password protected PDF document can be converted and changed


Open source codes can be added to C# class


Free control and components are available for downloading


RasterEdge PDF to JPEG converting control SDK (XDoc.PDF for .NET) supports converting PDF document to JPEG image file in .NET developing platforms using simple C# programming code. JPEG image file, owing to its small-size feature, is counted as a more suitable choice for publishing in web services than PDF document file.


Using this C#.NET PDF to JPEG conversion library component toolkit, C# developers can easily and quickly convert a large-size multi-page PDF document to a group of high-quality separate JPEG image files within .NET projects, including ASP.NET web and Window Forms applications.


When using RasterEdge PDF to JPEG converter library control SDK, C# developers may customize the names of all converted JPEG image files in .NET class application. In the following example, this C#.NET PDF to JPEG converter library will name the converted JPEG image file Output.jpg.




Convert PDF to JPEG Using C#.NET



Add necessary references:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Raster.dll


  RasterEdge.XDoc.Raster.Core.dll


  RasterEdge.XDoc.PDF.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.PDF;


Copy demo code below to achieve fast conversion from PDF file to Jpeg image in C# programming.




// Load a PDF file.
String inputFilePath = Program.RootPath + "\\" + "1.pdf";
PDFDocument doc = new PDFDocument(inputFilePath);

// Get the first page of PDF file.
PDFPage page = (PDFPage)doc.GetPage(0);

// Convert the first PDF page to a JPEG file.
page.ConvertToImage(ImageType.JPEG, Program.RootPath + "\\Output.jpg");




Following demo code will show how to convert all PDF pages to Jpeg images with C# .NET.




// Load a PDF file.
String inputFilePath = Program.RootPath + "\\" + "1.pdf";
PDFDocument doc = new PDFDocument(inputFilePath);
//Convert all pdf pages to jpeg images.
doc.ConvertToImages(ImageType.JPEG, fileToJpeg, "demo_");