I've been using iText to sign PDF files. I've learned how to do that with the help of the examples in http://itextpdf.sourceforge.net/howtosign.html.
My problem is: I need the signature to be calculated from the bytes of the original file only. When using the examples in the site above, the signature is calculated from the original file plus the bytes of the signature dictionary. I don't want to include the signature dictionary in the calculation of the digest and signature. So, what I need is a way to set the ByteRange field to the number bytes in the original file.
Any ideas on how to do this? Is it possible? From what I've read in the PDF Reference, I think it is. I just need some help on how to do it using iText.
Thanks in advance.
-- Tiago Epif�nio LEIC @ Insituto Superior T�cnico
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
