Hello to everybody!

 

First of all, excuse me my bad English.

 

When I work with one .pdf file I get the next error "Specified cast is not
valid" when run de SECOND C# code line:

 

1º) iTextSharp.text.pdf.PdfReader documentRead2= new
iTextSharp.text.pdf.PdfReader(PathDocument + @"\NoFirmat_" + NomDoc );

 

==> 2º) PdfStamper stp = PdfStamper.CreateSignature(documentRead2,new
FileStream(PathDocument + @"\" + NomDoc , FileMode.Create),'\0'); 

 

Only occurs with one pdf file. The others pdf files work fine.

 

Can yo help me, please to resolve this problem?

 

Thank You Very Much in advanced!

 

Kiko

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to