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().

Are the samples wrong, am I missing something?


thanks.
------------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
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/

Reply via email to