Free Support Forum - aspose.com

Cannot save pptx as pdf - Method is not supported

I modified your Slide Browser code and I can download the presentation as a pptx. When I execute the save using the SaveFormat.Pdf, I get a “Specified Method is not Supported”

MemoryStream ms = new MemoryStream();
pres.Write(ms);
ms.Position = 0;
PresentationEx pp = new PresentationEx(ms);

Response.ContentType = “application/pdf”;
Response.AppendHeader(“Content-Disposition”, “attachment; filename=” + “RMAT_” + DateTime.Today.ToShortDateString() + “.pdf”);
pp.Save(Response.OutputStream, SaveFormat.Pdf);


Response.Flush();
Response.End();

Hello Joseph,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for considering Aspose.Slides.

I have been able successfully execute the code snippet mentioned below with Aspose.Slides for .NET 4.1.1. Can you please try verifying the following code snippet?

PresentationEx pres = new PresentationEx("D://ppt//modified.pptx");

Response.ContentType = "application/pdf";

Response.AppendHeader("Content-Disposition", "attachment; filename=export_example.pdf");

Response.Flush();

System.IO.Stream sta = this.Response.OutputStream;

pres.Save(sta,SaveFormat.Pdf);

Response.End();

Thanks and Regards,

Thanks, that works with 4.1.1. I was using 4.1.0.