views:

371

answers:

1

I need to attach a pdf I created in memory to an email. Attachments can take a stream. So I believe I need to convert a iTextSharp Document object to stream. How can I do that? I tried serializing the Document object to a stream but it is not "marked as serializable".

Thanks

A: 

Look at iText.pdf.PdfWriter. There are methods that take a stream.

Here's a sample for streaming in ASP.NET- link text

RichardOD