After using PdfFileStamp with MemoryStreams, how would you recommend sending the output to a browser.
I have tried using the following code:-
MemoryStream outStream = new MemoryStream( (int)_pdfStream.Length );
PdfFileStamp stamper = new PdfFileStamp( _pdfStream, outStream );
Stamp backgroundStamp = new Stamp();
stamper.AddStamp( backgroundStamp );
Pdf pdfOut = new Pdf();
pdfOut.BindXML( outStream, null );
pdfOut.Save( pdfFilename, Aspose.Pdf.SaveType.OpenInAcrobat, Response );
but I got this System.Xml.XmlException:
Data at the root level is invalid. Line 1, position 1.
Any suggests please.