
Convert PDF to PPT in C#
In the recent past, we published a blog post about how to Render PowerPoint Presentations using C#. We also showed how to convert PowerPoint slides to JPG images. In this article, we will learn how to convert PDF to PPT in C# programmatically. We will use this .NET PDF library because it provides methods and properties for PDF manipulation and conversion. Both file formats are popular for their robust features.
The following sections are covered:
- PDF to PPT Conversion - C# API Installation
- Convert PDF to PPT Presentation in C# Programmatically
- PDF to PowerPoint Slides - Advanced Options
PDF to PPT Conversion - C# API Installation
We will use this .NET PDF library to add a PDF to PPT converter to our .NET application. It is lightweight, easy to install, and includes comprehensive documentation.
You can either download the DLL files or run the following command in the NuGet package manager.
Install-Package Aspose.Pdf
Convert PDF to PPT Presentation in C# Programmatically
Now that the library is installed, we can write C# code to convert PDF to PPT programmatically.
Follow these steps:
- Load the PDF document by creating a Document object.
- Create a PptxSaveOptions instance to specify conversion options.
- Save the result in PPTX format using the Save method.
The code snippet below demonstrates how to convert PDF to PPT Presentation in C#:
PDF to PowerPoint Slides - Advanced Options
This .NET PDF library offers many advanced features. See the full list here. Below are some useful options:
- Create a Document object and load the source PDF.
- Initialize a PptxSaveOptions object.
- Set the SlidesAsImages property to true to convert PDF to PPT with slides as images.
- Adjust image quality with the ImageResolution property.
- Enable CloseResponse to close the response after saving.
- Turn on text column recognition with OptimizeTextBoxes.
- Save the output in PPTX format using the Save method.
The resulting presentation is shown below:

Get a Free License
You can obtain a free temporary license to try the API without evaluation limits.
Summing up
That’s all! We hope this guide helps you implement PDF to PPT Presentation conversion in C#. You now know how to convert PDF to PPT programmatically and how to use advanced features of this .NET PDF library. Be sure to review the documentation for additional methods and properties. Stay tuned to conholdate.com for more blog posts and updates.
Ask a question
Post your questions or queries on our forum.