Convert or Import PDF files into PowerPoint Presentation in C#
Contents
[
Hide
]
Aspose.Slides for .NET allows you to import presentations from PDFs. Essentially, you get to convert a PDF to a PowerPoint presentation.
Go through these steps:
- Instantiate an object of the presentation class.
- Call the AddFromPdf method and pass the PDF file.
- 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);
}