Hi,

please try what Paulo said first:

> From: [email protected]
> To: [email protected]
> Date: Fri, 18 Feb 2011 18:18:56 +0000
> Subject: Re: [iText-questions] ITextSharp, FDF problem.
>
> You must call pdfStamper.Close() even if you set CloseStream to false.
> There are a lot of streams floating around, I advise you to read
> HttpContext.Current.Request.InputStream to a byte[] and see what you
> got and do a pdfFlat.ToArray() to check for the flattened pdf integrity
> before further processing.
>
> Paulo

another problem, not related to iText[Sharp] is with the code you're using to 
send the email, if it's what you're really using:

________________________________
> From: [email protected]
> To: [email protected]
> Date: Fri, 18 Feb 2011 12:34:17 -0500
> Subject: [iText-questions] ITextSharp, FDF problem.

> Private Sub Send(ByVal attachement As String)
                                        ^^^^^^

you can't pass a string when you're trying to attach a PDF and expect it to 
work. you need a Stream (the PDF),  and must pass the correct MIME type.

see here:

http://kuujinbo.info/iTextSharp/pdfSendMail.aspx

for how to attach the file properly.
                                          
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to