Free Support Forum -

Problem while saving PDF as Stream


I am using the following code to convert pdf into memory stream but it gives Compress Error.

MemoryStream ms = new MemoryStream();

Aspose.Pdf.Pdf objPdf = new Aspose.Pdf.Pdf();

objPdf.BindXML(xmlDoc, null);

objPdf.Save(ms); "Here it gives compress error "

Please help ASAP.


Please provide the whole codes segment which could reproduce the error.