The byte range excludes the signature itself. It's also possible to define 
other exclusions  as it's done in 
http://itextpdf.sourceforge.net/howtosign.html#signextdic.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Tiago Epifanio
> Sent: Friday, May 20, 2005 12:17 PM
> To: [email protected]
> Subject: [iText-questions] PDF Signatures and ByteRange
> 
> Hi.
> 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
> 


-------------------------------------------------------
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_idt12&alloc_id344&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to