We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How do i convert pptx to pdf


I am using aspose slides version & aspose pdf version

How do i convert pptx (office 2007 docs) to pdf.

Thanks & Regards,

Hi Karthik,

You can use the latest version of Aspose.Slides for .NET, that is 4.0.1 and use the following code to export pptx to pdf.

PresentationEx pres = new PresentationEx("tst1.pptx");



I am trying to use the technique in this thread as:

Dim sFile As String

Dim oTemplate As PresentationEx

oTemplate = New PresentationEx(file://rtselp-fs01/Final%20Art/PATRIOT/LessonTemplates/MIRTemplate.pptx)

sFile = Request.MapPath("~\Documents\export_example.pdf")

oTemplate.Save(sFile, Aspose.Slides.Export.SaveFormat.Pdf)

Neither oTemplate nor sFile are nothing, yet I get the error "Object reference not set to an instance of an object." when the Save line executes. I'm using .net Slides version 4.2.

Can't figure what is wrong; any clues? (MIRTemplate.pptx attached).


Dear Brad,

I have tried to work with the presentation file shared by you and have successfully been able to generate the PDF using Aspose.Slides for .NET 4.3.0. For your kind reference, I have shared the generated PDF as well. I have used the following code snippet to generate the PDF.

Dim TestPres As PresentationEx = New PresentationEx("D:\\Aspose Data\\MIRTemplate.pptx")

Dim sFile As String = "D:\\Aspose Data\\thumbnail\\Pres.pdf"

TestPres.Save(sFile, SaveFormat.Pdf)

Thanks and Regards,