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