Convert or Import PDF files into PowerPoint Presentation in C#

Contents
[ ]

Aspose.Slides for .NET allows you to import presentations from PDFs. Essentially, you get to convert a PDF to a PowerPoint presentation.

pdf-to-powerpoint

Go through these steps:

  1. Instantiate an object of the presentation class.
  2. Call the AddFromPdf method and pass the PDF file.
  3. Use the Save method to save the file in the PowerPoint format.

This C# code demonstrates the PDF to PowerPoint process:

using (Presentation pres = new Presentation())
{
    pres.Slides.AddFromPdf("InputPDF.pdf");
    pres.Save("OutputPresentation.pptx", SaveFormat.Pptx);
}