Hai
This is what the code I writen, In my sample application the same code is working properly....but in my Actual application its not working properly..please reply ASAP
MemoryStream docStream = new MemoryStream(letterAttachment.fileContent);
//letterAttachment.fileContent: This is byte Array
MemoryStream xmlStream = new MemoryStream();
MemoryStream pdfStream = new MemoryStream();
Document doc = new Document(docStream as Stream);
doc.Save(xmlStream, SaveFormat.FormatAsposePdf);
Aspose.Pdf.Pdf pdfDoc = new Aspose.Pdf.Pdf();
pdfDoc.BindXML(xmlStream, null);
pdfDoc.Save(pdfStream); // Here its Giving COMPRESS ERROR