C#: Online Guide
How To: PDF SDK
Convert PDF to Jpeg
Convert PDF to Jpeg
  |  
Home ›› XDoc.PDF ›› C# PDF: PDF to Jpeg

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


C#.NET PDF to JPEG Converting & Conversion Control




PDF to JPEG Conversion Overview



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



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




// Used to register all DLL assemblies.
WorkRegistry.Reset();

// 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");