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

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


C#.NET PowerPoint to JPEG Converting & Conversion Control




PowerPoint to JPEG Conversion Overview



RasterEdge PowerPoint to JPEG converting control SDK (XDoc.PowerPoint for .NET) supports converting PowerPoint 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 PowerPoint document file.


Using this C#.NET PowerPoint to JPEG conversion library component toolkit, C# developers can easily and quickly convert a large-size multi-page PowerPoint 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 PowerPoint 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 PowerPoint to JPEG converter library will name the converted JPEG image file Output.jpg.




Convert PowerPoint to JPEG Using C#.NET



Add references:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.PowerPoint.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.Imaging.Basic.Codec.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.PowerPoint;


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




// Load a PowerPoint file.
String inputFilePath = Program.RootPath + "\\" + "1.pptx";
PPTXDocument doc = new PPTXDocument(inputFilePath);

// Get the first page of PowerPoint file.
PPTXPage page = (PPTXPage)doc.GetPage(0);

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