pdf.Save(Steam) question


I am using Aspose.pdf in a windows client app written is C#. Is it possible to create a pdf file and stream it to the screen without saving it to disk?

Using the code below, I can sucessfully save it to a stream, but I’m not sure how to open the report to Acrobat after it is done.

MemoryStream pdfStream = new MemoryStream();
Pdf pdfDoc = new Pdf();
Section section = pdfDoc.Sections.Add()



I could not find an example on your forum for this type of implementation. Any help is appreciated. Thanks.


Dear gibsoju,

Thank you for considering Aspose.

You can save the generated PDF document into a stream using Aspose.Pdf. But displaying PDF document is not supported currently in our products. You need other component to display your document.