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

Free Support Forum - aspose.com

Stream PDF and version 4.0.1 Slides

I can't seem to get exporting to PDF using a stream to work always get an error: $exception {"Specified method is not supported."} System.Exception {System.NotSupportedException}

This was working fine with previous version of Aspose.slides (2.6.5) now it seems to have broken in 4.0.1

Can you post an example of saving PPT to PDF (just using slides not aspose.pdf) and using a stream. If I save it to a file it works just fine. I tried SavetoPDF and also just save with export options.

Presentation pres1 = new Presentation(PPTfile);

//'Setting the content type of the Http Response

Response.ContentType = "application/pdf";

//'Appending the header of the Http Response to contain the presentation file name

Response.AppendHeader("Content-Disposition", "attachment; MyPreso.pdf");

//'Flushing the buffers of Http Response


//'Accessing the output stream of Http Response

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

Aspose.Slides.Export.PdfOptions opts = new Aspose.Slides.Export.PdfOptions();

opts.SaveMetafilesAsPng = false;

opts.JpegQuality = 90;

//'Writing the presentation as a PPT file


//pres1.Save(st, Aspose.Slides.Export.SaveFormat.Pdf,opts);

//'Closing the Http Response



An issue with issue id 12272 has been created for this issue and you will be informed as soon as it is resolved.

The issues you have found earlier (filed as 12272) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.