XDoc.PDF
Features
Tech Specs
How-to C#
How-to VB.NET
Pricing
Convert PDF to Jpeg
Work with Other SDKs
Convert PDF to Jpeg
  |  
Home ›› XDoc.PDF ›› C# PDF: Convert PDF to Jpeg

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


C#.NET PDF to JPEG Converting & Conversion Control for .NET Framework




Best C#.NET PDF converter SDK for converting PDF to jpeg in Visual Studio .NET


Advanced .NET library to batch convert PDF files to jpg image files in Visual C# class


Free evaluation dll components for convert PDF to Jpeg in both .NET WinForms and ASP.NET application


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


Complete C# source codes for turning a single PDF page or all PDF pages to Jpeg files in .NET framework


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


Thumbnails can be created from PDF pages


Support for customizing image size


Password protected PDF document can be converted and changed


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.




C#.NET Library and Demo Code: Convert PDF to JPEG in 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_");