Daniel, > Are the samples wrong, am I missing something?
In general the samples are working all right. If you tell us which iTextSharp version exactly you use and give us an example PDF file that resists being signed, we might help you. Regards, Michael. ________________________________ Von: Daniel Oliveras [mailto:[email protected]] Gesendet: Donnerstag, 25. Februar 2010 09:24 An: Post all your questions about iText here Betreff: [iText-questions] Testing signatures with ItextSharp Hi, I am testing the samples in http://itextpdf.sourceforge.net/howtosign.html#signextitextsharp2 to see how it works the signature process in ItextSharp, but I found that those samples does not work, in my case every time I try to sign a PDF hapens the following: Stream s = sap.RangeStream; int read = 0; byte[] buff = new byte[8192]; while ((read = s.Read(buff, 0, 8192)) > 0) { sha.TransformBlock(buff, 0, read, buff, 0); } the call to sap.RangeStream returns always an empty Stream, provoquing the attempt to sign an empty Hash. I copied the samples exactly as they are on the web, but the same thing hapens with the functions SignHashed() and SignDetached(). -- GMX DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.! http://portal.gmx.net/de/go/dsl02 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
