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

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


Online C# Tutorial for Converting PowerPoint to PDF (.pdf) Document




PowerPoint to PDF Conversion Overview



RasterEdge C#.NET Convert PowerPoint to PDF SDK library control (XDoc.PowerPoint) is a mature and effective PowerPoint document converting utility. Using this PowerPoint to PDF converting library control, .NET developers can quickly convert PowerPoint document to PDF file using Visual C# code. This C#.NET PowerPoint to PDF conversion library can help developers convert multi-page PowerPoint document to multi-page PDF file.


Related .net document control helps:
asp.net view tiff images: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net annotate pdf using c#: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net document viewer example: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
c# asp.net excel viewer: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net mvc image viewer: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery
asp.net mvc word viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net edit pdf image using c#: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#


The most outstanding feature of this PowerPoint to PDF converting toolkit is its industry-leading converting accuracy. The PDF file, converted by RasterEdge PowerPoint to PDF converter toolkit, preserves the structure & layout of target PowerPoint document, keeps the elements (like images, tables and chats) of original PowerPoint file and maintains the original text style (including font, size, color, links and boldness).


Why do we need this PowerPoint to PDF converting library? In the daily-life applications, you often need to render and print PowerPoint document content for certain purpose. But without licensed third-party software, you can hardly print the PowerPoint document as the original style. Under this situation, you need to convert PowerPoint document to some image format document.


RasterEdge XDoc.PowerPoint empowers your C#.NET application with advanced PowerPoint to PDF conversion functionality.




C# Demo: Convert PowerPoint to PDF Document



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


  RasterEdge.XDoc.PDF.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.PowerPoint;


This is a C# programming example for converting PowerPoint to PDF (.pdf) file.




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

// Convert and output to a PDF file.
String outputFilePath = inputFilePath + ".pdf";
doc.ConvertToDocument(DocumentType.PDF, outputFilePath);